Searched refs:rustfmt (Results 1 – 12 of 12) sorted by relevance
19 代码应该使用 ``rustfmt`` 进行格式化。这样一来,一个不时为内核做贡献的人就不需要再去学23 .. note:: ``rustfmt`` 不检查注释和文档的约定。因此,这些仍然需要照顾到。25 使用 ``rustfmt`` 的默认设置。这意味着遵循Rust的习惯性风格。例如,缩进时使用4个空格而31 make LLVM=1 rustfmt37 像内核其他部分的 ``clang-format`` 一样, ``rustfmt`` 在单个文件上工作,并且不需要43 ``rustfmt`` 默认会以一种在合并和变基时容易产生冲突的方式格式化导入,因为在某些情况下74 末尾的空注释可以保留这种格式。不仅如此, ``rustfmt`` 在添加空注释后实际上会将导入重75 新格式化为垂直布局。也就是说,可以通过对如下输入运行 ``rustfmt`` 来轻松地将原始示例104 最终目标是让 ``rustfmt`` 在稳定版本中自动支持这种格式化风格(或类似的风格),而无需
48 apt install rustc rust-src bindgen rustfmt rust-clippy56 dnf install rust rust-src bindgen-cli rustfmt clippy65 USE='rust-src rustfmt clippy' emerge dev-lang/rust dev-util/bindgen77 nativeBuildInputs = with pkgs; [ rustc rust-bindgen rustfmt clippy ];99 apt install rustc rust-src bindgen rustfmt rust-clippy114 apt install rustc-1.80 rust-1.80-src bindgen-0.65 rustfmt-1.80 \116 ln -s /usr/lib/rust-1.80/bin/rustfmt /usr/bin/rustfmt-1.80121 make LLVM=1 RUSTC=rustc-1.80 RUSTDOC=rustdoc-1.80 RUSTFMT=rustfmt-1.80 \244 rustfmt126 rustfmt global() section in 开发依赖 [all...]
45 apt install rustc rust-src bindgen rustfmt rust-clippy54 dnf install rust rust-src bindgen-cli rustfmt clippy63 USE='rust-src rustfmt clippy' emerge dev-lang/rust dev-util/bindgen76 nativeBuildInputs = with pkgs; [ rustc rust-bindgen rustfmt clippy ];96 apt install rustc rust-src bindgen rustfmt rust-clippy112 apt install rustc-1.85 rust-1.85-src bindgen-0.71 rustfmt-1.85 \114 ln -s /usr/lib/rust-1.85/bin/rustfmt /usr/bin/rustfmt-1.85120 make LLVM=1 RUSTC=rustc-1.85 RUSTDOC=rustdoc-1.85 RUSTFMT=rustfmt-1.85 \258 rustfmt261 rustfmt global() section in Requirements: Developing [all...]
12 The code should be formatted using ``rustfmt``. In this way, a person19 ``rustfmt``. Thus those are still needed to be taken care of.21 The default settings of ``rustfmt`` are used. This means the idiomatic Rust30 make LLVM=1 rustfmt37 Like ``clang-format`` for the rest of the kernel, ``rustfmt`` works on44 ``rustfmt``, by default, formats imports in a way that is prone to conflicts78 ``rustfmt`` will actually reformat imports vertically when the empty comment is80 expected style by running ``rustfmt`` on an input like:112 Eventually, the goal is to get ``rustfmt`` to support this formatting style (or
555 #[rustfmt::skip] // https://github.com/rust-lang/rustfmt/issues/6176639 #[rustfmt::skip]758 #[rustfmt::skip]852 #[rustfmt::skip]856 #[rustfmt::skip]860 #[rustfmt::skip]864 #[rustfmt::skip]868 #[rustfmt::skip]
240 #[rustfmt::skip]
196 #[rustfmt::skip]
20 #[rustfmt::skip]
120 !.rustfmt.toml
298 outputmakefile rustavailable rustfmt rustfmtcheck \539 RUSTFMT = rustfmt1825 @echo ' rustfmt - Reformat all the Rust code in the kernel'1947 PHONY += rustfmt rustfmtcheck1949 rustfmt:1960 rustfmtcheck: rustfmt1915 rustfmt: global() target
363 command -v $(RUSTFMT) >/dev/null && $(RUSTFMT) --config-path $(srctree)/.rustfmt.toml $@