Home
last modified time | relevance | path

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

/linux/Documentation/translations/zh_CN/rust/
H A Dcoding-guidelines.rst19 代码应该使用 ``rustfmt`` 进行格式化。这样一来,一个不时为内核做贡献的人就不需要再去学
23 .. note:: ``rustfmt`` 不检查注释和文档的约定。因此,这些仍然需要照顾到。
25 使用 ``rustfmt`` 的默认设置。这意味着遵循Rust的习惯性风格。例如,缩进时使用4个空格而
31 make LLVM=1 rustfmt
37 像内核其他部分的 ``clang-format`` 一样, ``rustfmt`` 在单个文件上工作,并且不需要
43 ``rustfmt`` 默认会以一种在合并和变基时容易产生冲突的方式格式化导入,因为在某些情况下
74 末尾的空注释可以保留这种格式。不仅如此, ``rustfmt`` 在添加空注释后实际上会将导入重
75 新格式化为垂直布局。也就是说,可以通过对如下输入运行 ``rustfmt`` 来轻松地将原始示例
104 最终目标是让 ``rustfmt`` 在稳定版本中自动支持这种格式化风格(或类似的风格),而无需
H A Dquick-start.rst48 apt install rustc rust-src bindgen rustfmt rust-clippy
56 dnf install rust rust-src bindgen-cli rustfmt clippy
65 USE='rust-src rustfmt clippy' emerge dev-lang/rust dev-util/bindgen
77 nativeBuildInputs = with pkgs; [ rustc rust-bindgen rustfmt clippy ];
99 apt install rustc rust-src bindgen rustfmt rust-clippy
114 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.80
121 make LLVM=1 RUSTC=rustc-1.80 RUSTDOC=rustdoc-1.80 RUSTFMT=rustfmt-1.80 \
244 rustfmt
126 rustfmt global() section in 开发依赖
[all...]
/linux/Documentation/rust/
H A 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 ];
96 apt install rustc rust-src bindgen rustfmt rust-clippy
112 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.85
120 make LLVM=1 RUSTC=rustc-1.85 RUSTDOC=rustdoc-1.85 RUSTFMT=rustfmt-1.85 \
258 rustfmt
261 rustfmt global() section in Requirements: Developing
[all...]
H A 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
44 ``rustfmt``, by default, formats imports in a way that is prone to conflicts
78 ``rustfmt`` will actually reformat imports vertically when the empty comment is
80 expected style by running ``rustfmt`` on an input like:
112 Eventually, the goal is to get ``rustfmt`` to support this formatting style (or
/linux/rust/syn/
H A Dlib.rs555 #[rustfmt::skip] // https://github.com/rust-lang/rustfmt/issues/6176
639 #[rustfmt::skip]
758 #[rustfmt::skip]
852 #[rustfmt::skip]
856 #[rustfmt::skip]
860 #[rustfmt::skip]
864 #[rustfmt::skip]
868 #[rustfmt::skip]
H A Dcustom_punctuation.rs240 #[rustfmt::skip]
/linux/rust/pin-init/internal/src/
H A Dlib.rs
/linux/rust/kernel/
H A Ddevice_id.rs196 #[rustfmt::skip]
H A Derror.rs20 #[rustfmt::skip]
/linux/
H A D.gitignore120 !.rustfmt.toml
H A DMakefile298 outputmakefile rustavailable rustfmt rustfmtcheck \
539 RUSTFMT = rustfmt
1825 @echo ' rustfmt - Reformat all the Rust code in the kernel'
1947 PHONY += rustfmt rustfmtcheck
1949 rustfmt:
1960 rustfmtcheck: rustfmt
1915 rustfmt: global() target
/linux/scripts/
H A DMakefile.build363 command -v $(RUSTFMT) >/dev/null && $(RUSTFMT) --config-path $(srctree)/.rustfmt.toml $@