Home
last modified time | relevance | path

Searched full:rustfmt (Results 1 – 25 of 103) sorted by relevance

12345

/third_party/rust/crates/bindgen/book/src/
Dcode-formatting.md3 `bindgen` uses `rustfmt` to format the emitted bindings. This section describes
4 how to adjust the `rustfmt` behavior when being used from `bindgen`.
6 ## Passing a `rustfmt.toml` configuration file
8 `rustfmt` should automatically use any `rustfmt.toml` file that is present in
11 directory you can use the `--rustfmt-configuration-file` flag or the
15 ## Using a nightly release of `rustfmt`
17 If the `rustfmt` command does not correspond to a nightly release of `rustfmt`
33 $ rustup which rustfmt --toolchain=nightly
44 .args(["which", "rustfmt", "--toolchain", "nightly"])
55 String::from_utf8(output.stdout).expect("The `rustfmt` path is not valid `utf-8`");
Dfaq.md117 `rustfmt.toml` file with the following contents:
123 Then, you have set up bindgen so it passes this file to `rustfmt`. Given that
125 [unstable](https://github.com/rust-lang/rustfmt/issues/3351), you also have to
126 set up bindgen to use a `nightly` release of `rustfmt`. Please check the [code
/third_party/rust/crates/pin-project-lite/
D.rustfmt.toml1 # Rustfmt configuration
2 # https://github.com/rust-lang/rustfmt/blob/HEAD/Configurations.md
4 # Rustfmt cannot format long lines inside macros, but this option detects this.
5 # This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3391)
9 # See https://internals.rust-lang.org/t/running-rustfmt-on-rust-lang-rust-and-other-rust-lang-repos…
12 # This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3370)
19 # Apply rustfmt to more places.
20 # This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3348).
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dtests.rs23 // Run `rustfmt` on the given source string and return a tuple of the formatted
24 // bindings, and rustfmt's stderr.
25 fn rustfmt(source: String) -> (String, String) { in rustfmt() function
29 if env::var_os("RUSTFMT").is_some() { in rustfmt()
33 let mut rustfmt = { in rustfmt() localVariable
35 p.args(["run", "nightly", "rustfmt", "--version"]); in rustfmt()
39 let have_working_rustfmt = rustfmt in rustfmt()
49 The latest `rustfmt` is required to run the `bindgen` test suite. Install in rustfmt()
50 `rustfmt` with: in rustfmt()
53 $ rustup component add rustfmt --toolchain nightly in rustfmt()
[all …]
Dtest-one.sh48 FLAGS="--rustfmt-bindings --with-derive-default --raw-line '' --raw-line '#![allow(dead_code, non_s…
59 rustup run nightly rustfmt "$BINDINGS" || true
83 rustup run nightly rustfmt "$EXPECTED" || true
/third_party/rust/crates/syn/tests/repo/
Dmod.rs15 #[rustfmt::skip]
33 "src/tools/rustfmt/tests/source/trait.rs",
34 "src/tools/rustfmt/tests/target/trait.rs",
62 "src/tools/rustfmt/tests/coverage/target/comments.rs",
63 "src/tools/rustfmt/tests/parser/issue-4126/invalid.rs",
64 "src/tools/rustfmt/tests/parser/issue_4418.rs",
65 "src/tools/rustfmt/tests/parser/unclosed-delims/issue_4466.rs",
66 "src/tools/rustfmt/tests/source/configs/disable_all_formatting/true.rs",
67 "src/tools/rustfmt/tests/source/configs/spaces_around_ranges/false.rs",
68 "src/tools/rustfmt/tests/source/configs/spaces_around_ranges/true.rs",
[all …]
/third_party/rust/crates/pin-project-lite/tools/
Dci.sh10 # Note: This script requires nightly Rust, rustfmt, clippy, and cargo-expand
34 if ! rustup "${toolchain}" component add rustfmt &>/dev/null \
36 warn "ci.sh requires rustfmt and cargo-expand to run all tests"
39 # Run rustfmt.
40 if ! rustup "${toolchain}" component add rustfmt &>/dev/null; then
41 warn "component 'rustfmt' is unavailable for toolchain '${toolchain#+}'"
/third_party/rust/crates/bindgen/bindgen-cli/
DCargo.toml31 default = ["logging", "runtime", "which-rustfmt"]
35 # Dynamically discover a `rustfmt` binary using the `which` crate
36 which-rustfmt = ["bindgen/which-rustfmt"]
/third_party/rust/crates/cfg-if/.github/workflows/
Dmain.yml22 rustfmt:
23 name: Rustfmt
31 rustup component add rustfmt
32 - name: Run rustfmt
/third_party/rust/crates/termcolor/.github/workflows/
Dci.yml62 rustfmt:
63 name: rustfmt
74 - name: Install rustfmt
75 run: rustup component add rustfmt
/third_party/rust/crates/bindgen/ci/
Dtest.sh78 # Need rustfmt to compare the test expectations.
80 …rust-lang.github.io/rustup-components-history/$(rustup target list --installed | tail -1)/rustfmt)"
82 rustup component add rustfmt --toolchain "$toolchain"
83 export RUSTFMT="$(rustup which --toolchain "$toolchain" rustfmt)"
/third_party/rust/crates/which-rs/.github/workflows/
Drust.yml7 # Run the `rustfmt` code formatter
8 rustfmt:
9 name: Rustfmt [Formatter]
21 components: rustfmt
/third_party/rust/crates/syn/tests/
Dtest_item.rs64 #[rustfmt::skip] in test_negative_impl()
109 #[rustfmt::skip] in test_negative_impl()
167 #[rustfmt::skip] in test_supertraits()
179 #[rustfmt::skip] in test_supertraits()
192 #[rustfmt::skip] in test_supertraits()
218 #[rustfmt::skip] in test_supertraits()
247 #[rustfmt::skip] in test_type_empty_bounds()
/third_party/rust/crates/libc/ci/
Dstyle.sh7 rustup toolchain install nightly -c rustfmt --allow-downgrade
9 command -v rustfmt
10 rustfmt -V
/third_party/rust/crates/either/.github/workflows/
Dci.yml46 name: Rustfmt and Clippy
55 components: rustfmt, clippy
57 - name: Rustfmt
/third_party/rust/crates/minimal-lexical/docs/
DDevelopment.md25 - Rustfmt
37 rustup +nightly component add rustfmt
55 …ithub.com/Alexhuszagh/minimal_lexical/blob/main/scripts/check.sh): Check rustfmt and clippy withou…
64 # Ensure all rustfmt and clippy checks pass.
/third_party/rust/crates/bindgen/bindgen/
DCargo.toml44 default = ["logging", "runtime", "which-rustfmt"]
48 # Dynamically discover a `rustfmt` binary using the `which` crate
49 which-rustfmt = ["which"]
/third_party/rust/crates/nom/.github/
DPULL_REQUEST_TEMPLATE.md23 This project follows a [code style](https://github.com/Geal/nom/blob/main/rustfmt.toml)
24 checked by [rustfmt][https://github.com/rust-lang-nursery/rustfmt].
/third_party/rust/crates/clap/.github/workflows/
Dci.yml16 needs: [test, check, docs, rustfmt, clippy]
150 rustfmt:
151 name: rustfmt
164 components: rustfmt
Drust-next.yml68 rustfmt:
69 name: rustfmt
86 components: rustfmt
/third_party/rust/crates/nom/
DCONTRIBUTING.md68 The normal rust coding style is checked by [rustfmt][cs1].
72 use the following command to run rustfmt: `cargo +stable fmt`
73 [cs1]: https://github.com/rust-lang-nursery/rustfmt
/third_party/rust/crates/atty/
Drustfmt.toml1 # https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#fn_args_layout
3 # https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#merge_imports
/third_party/rust/crates/aho-corasick/.github/workflows/
Dci.yml95 rustfmt:
96 name: rustfmt
107 components: rustfmt
/third_party/rust/crates/bindgen/bindgen-tests/
DCargo.toml18 which-rustfmt = ["bindgen/which-rustfmt"]
/third_party/rust/crates/codespan/.github/workflows/
Dci.yml99 name: Rustfmt (${{ matrix.rust }})
102 - name: Install minimal ${{ matrix.rust }} with rustfmt
108 components: rustfmt

12345