Home
last modified time | relevance | path

Searched refs:rustfmt (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/Documentation/translations/zh_CN/rust/
Dcoding-guidelines.rst19 代码应该使用 ``rustfmt`` 进行格式化。这样一来,一个不时为内核做贡献的人就不需要再去学
23 .. note:: ``rustfmt`` 不检查注释和文档的约定。因此,这些仍然需要照顾到。
25 使用 ``rustfmt`` 的默认设置。这意味着遵循Rust的习惯性风格。例如,缩进时使用4个空格而
31 make LLVM=1 rustfmt
37 像内核其他部分的 ``clang-format`` 一样, ``rustfmt`` 在单个文件上工作,并且不需要
Dquick-start.rst126 rustfmt section in 开发依赖
129 ``rustfmt`` 工具被用来自动格式化所有的Rust内核代码,包括生成的C绑定(详情请见
135 rustup component add rustfmt
137 独立的安装程序也带有 ``rustfmt`` 。
/linux-6.12.1/Documentation/rust/
Dquick-start.rst45 apt install rustc rust-src bindgen rustfmt rust-clippy
54 dnf install rust rust-src bindgen-cli rustfmt clippy
63 USE='rust-src rustfmt clippy' emerge dev-lang/rust dev-util/bindgen
76 nativeBuildInputs = with pkgs; [ rustc rust-bindgen rustfmt clippy ];
206 rustfmt section in Requirements: Developing
209 The ``rustfmt`` tool is used to automatically format all the Rust kernel code,
217 rustup component add rustfmt
219 The standalone installers also come with ``rustfmt``.
Dcoding-guidelines.rst12 The code should be formatted using ``rustfmt``. In this way, a person
19 ``rustfmt``. Thus those are still needed to be taken care of.
21 The default settings of ``rustfmt`` are used. This means the idiomatic Rust
30 make LLVM=1 rustfmt
37 Like ``clang-format`` for the rest of the kernel, ``rustfmt`` works on
/linux-6.12.1/
D.gitignore113 !.rustfmt.toml
DMakefile276 outputmakefile rustavailable rustfmt rustfmtcheck
494 RUSTFMT = rustfmt
1744 PHONY += rustfmt rustfmtcheck
1751 rustfmt: target
1761 rustfmtcheck: rustfmt
/linux-6.12.1/rust/kernel/
Derror.rs16 #[rustfmt::skip]