/third_party/rust/crates/bindgen/book/src/ |
D | code-formatting.md | 3 `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`");
|
D | faq.md | 117 `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/syn/tests/ |
D | test_item.rs | 64 #[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()
|
D | test_ty.rs | 292 #[rustfmt::skip] in test_trailing_plus() 312 #[rustfmt::skip] in test_trailing_plus() 333 #[rustfmt::skip] in test_trailing_plus()
|
D | test_expr.rs | 53 #[rustfmt::skip] 287 #[rustfmt::skip] // rustfmt bug: https://github.com/rust-lang/rustfmt/issues/4808 in test_closure_vs_rangefull()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/ |
D | tests.rs | 25 fn rustfmt(source: String) -> (String, String) { in rustfmt() function 33 let mut rustfmt = { in rustfmt() localVariable 39 let have_working_rustfmt = rustfmt in rustfmt() 253 rustfmt(actual) in compare_generated_header() 259 let (expected, rustfmt_stderr) = rustfmt(expected); in compare_generated_header() 454 let (actual, stderr) = rustfmt(actual); in test_clang_env_args() 457 let (expected, _) = rustfmt( in test_clang_env_args() 481 let (actual, stderr) = rustfmt(actual); in test_header_contents() 484 let (expected, _) = rustfmt( in test_header_contents() 508 let (actual, stderr) = rustfmt(actual); in test_multiple_header_calls_in_builder() [all …]
|
D | test-one.sh | 59 rustup run nightly rustfmt "$BINDINGS" || true 83 rustup run nightly rustfmt "$EXPECTED" || true
|
/third_party/rust/crates/libc/ci/ |
D | style.sh | 7 rustup toolchain install nightly -c rustfmt --allow-downgrade 9 command -v rustfmt 10 rustfmt -V
|
/third_party/rust/crates/bindgen/bindgen-cli/ |
D | Cargo.toml | 31 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/syn/src/ |
D | lib.rs | 580 #[rustfmt::skip] 677 #[rustfmt::skip] 764 #[rustfmt::skip] 768 #[rustfmt::skip] 772 #[rustfmt::skip] 776 #[rustfmt::skip] 780 #[rustfmt::skip]
|
/third_party/rust/crates/atty/ |
D | rustfmt.toml | 1 # 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/bindgen/bindgen/ |
D | Cargo.toml | 44 default = ["logging", "runtime", "which-rustfmt"] 48 # Dynamically discover a `rustfmt` binary using the `which` crate 49 which-rustfmt = ["which"]
|
/third_party/rust/crates/bindgen/bindgen-tests/ |
D | Cargo.toml | 18 which-rustfmt = ["bindgen/which-rustfmt"]
|
/third_party/rust/crates/nom/benchmarks/benches/ |
D | http.rs | 1 #![cfg_attr(rustfmt, rustfmt_skip)] 9 #[cfg_attr(rustfmt, rustfmt_skip)] 23 #[cfg_attr(rustfmt, rustfmt_skip)]
|
/third_party/rust/crates/nom/tests/ |
D | mp4.rs | 29 #[cfg_attr(rustfmt, rustfmt_skip)] 37 #[cfg_attr(rustfmt, rustfmt_skip)] 67 #[cfg_attr(rustfmt, rustfmt_skip)] 97 #[cfg_attr(rustfmt, rustfmt_skip)] 149 #[cfg_attr(rustfmt, rustfmt_skip)]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | types.rs | 15 #[rustfmt::skip] 54 #[rustfmt::skip] 151 #[rustfmt::skip]
|
/third_party/rust/crates/nom/ |
D | CONTRIBUTING.md | 68 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/syn/tests/repo/ |
D | mod.rs | 15 #[rustfmt::skip] 101 #[rustfmt::skip]
|
/third_party/rust/crates/minimal-lexical/docs/ |
D | Development.md | 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/unicode-ident/tests/tables/ |
D | mod.rs | 4 #[rustfmt::skip]
|
/third_party/rust/crates/io-lifetimes/ |
D | .rustfmt.toml | 1 # This file tells tools we use rustfmt. We use the default settings.
|
/third_party/rust/crates/linux-raw-sys/ |
D | .rustfmt.toml | 1 # This file tells tools we use rustfmt. We use the default settings.
|
/third_party/rust/crates/rustix/ |
D | .rustfmt.toml | 1 # This file tells tools we use rustfmt. We use the default settings.
|
/third_party/rust/crates/unicode-ident/tests/trie/ |
D | mod.rs | 4 #[rustfmt::skip]
|
/third_party/rust/crates/linux-raw-sys/gen/ |
D | Cargo.toml | 8 bindgen = { version = "=0.59.2", default-features = false, features = ["which-rustfmt"] }
|