Home
last modified time | relevance | path

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

12345678910>>...21

/external/bazelbuild-rules_rust/rust/private/
Drustfmt.bzl1 """A module defining rustfmt rules"""
6 """Check that a target is suitable for rustfmt and extract the `CrateInfo` provider from it.
28 """Parse a `CrateInfo` provider for rustfmt formattable sources.
42 "no-rustfmt",
59 # Write the rustfmt manifest
60 manifest = ctx.actions.declare_file(ctx.label.name + ".rustfmt")
71 rustfmt_toolchain = ctx.toolchains[Label("//rust/rustfmt:toolchain_type")]
74 marker = ctx.actions.declare_file(ctx.label.name + ".rustfmt.ok")
79 args.add(rustfmt_toolchain.rustfmt)
91 mnemonic = "Rustfmt",
[all …]
/external/bazelbuild-rules_rust/docs/
Drust_fmt.md12 [Rustfmt][rustfmt] is a tool for formatting Rust code according to style guidelines.
13 By default, Rustfmt uses a style which conforms to the [Rust style guide][rsg] that
15 configuration options can be found in the [Rustfmt GitHub Pages][rgp].
23 in your workspace. Simply run `bazel run @rules_rust//:rustfmt` to format source code.
25 In addition to this formatter, a simple check can be performed using the [rustfmt_aspect](#rustfmt-…
40 The `rustfmt_aspect` also uses a `--@rules_rust//:rustfmt.toml` setting which determines the
41 [configuration file][rgp] used by the formatter (`@rules_rust//tools/rustfmt`) and the aspect
43 file is used whenever `rustfmt` is run:
46 build --@rules_rust//:rustfmt.toml=//:rustfmt.toml
52 Any target which uses Bazel generated sources will cause the `@rules_rust//tools/rustfmt` tool to f…
[all …]
Drust_fmt.vm5 [Rustfmt][rustfmt] is a tool for formatting Rust code according to style guidelines.
6 By default, Rustfmt uses a style which conforms to the [Rust style guide][rsg] that
8 configuration options can be found in the [Rustfmt GitHub Pages][rgp].
16 in your workspace. Simply run `bazel run @rules_rust//:rustfmt` to format source code.
18 In addition to this formatter, a simple check can be performed using the [rustfmt_aspect](#rustfmt-…
33 The `rustfmt_aspect` also uses a `--@rules_rust//:rustfmt.toml` setting which determines the
34 [configuration file][rgp] used by the formatter (`@rules_rust//tools/rustfmt`) and the aspect
36 file is used whenever `rustfmt` is run:
39 build --@rules_rust//:rustfmt.toml=//:rustfmt.toml
45 Any target which uses Bazel generated sources will cause the `@rules_rust//tools/rustfmt` tool to f…
[all …]
/external/bazelbuild-rules_rust/tools/rustfmt/src/
Dlib.rs5 /// The expected extension of rustfmt manifest files generated by `rustfmt_aspect`.
6 pub const RUSTFMT_MANIFEST_EXTENSION: &str = "rustfmt";
8 /// A struct containing details used for executing rustfmt.
11 /// The rustfmt binary from the currently active toolchain
12 pub rustfmt: PathBuf, field
14 /// The rustfmt config file containing rustfmt settings.
15 /// https://rust-lang.github.io/rustfmt/
20 /// produce config data for running rustfmt.
24 let rustfmt = runfiles.rlocation(format!( in parse_rustfmt_config() localVariable
27 env!("RUSTFMT") in parse_rustfmt_config()
[all …]
Dmain.rs1 //! A tool for querying Rust source files wired into Bazel and running Rustfmt on them.
9 /// The Bazel Rustfmt tool entry point
17 // Run rustfmt on these targets in main()
78 // Except for targets tagged with `norustfmt`, `no-rustfmt`, or `no-format`. in edition_query()
81 …r(edition, "{edition}", $scope) except attr(tags, "(^\[|, )(no-format|no-rustfmt|norustfmt)(, |\]$… in edition_query()
124 /// Run rustfmt on a set of Bazel targets
142 // Run rustfmt in apply_rustfmt()
143 let status = Command::new(&options.rustfmt_config.rustfmt) in apply_rustfmt()
151 .expect("Failed to run rustfmt"); in apply_rustfmt()
159 /// A struct containing details used for executing rustfmt.
[all …]
/external/rust/crates/syn/tests/repo/
Dmod.rs18 #[rustfmt::skip]
50 "src/tools/rustfmt/tests/target/negative-bounds.rs",
59 "src/tools/rustfmt/tests/source/trait.rs",
60 "src/tools/rustfmt/tests/target/trait.rs",
67 "src/tools/rustfmt/tests/source/issue_4257.rs",
68 "src/tools/rustfmt/tests/source/issue_4911.rs",
69 "src/tools/rustfmt/tests/target/issue_4257.rs",
70 "src/tools/rustfmt/tests/target/issue_4911.rs",
79 "src/tools/rustfmt/tests/source/attrib.rs",
80 "src/tools/rustfmt/tests/source/closure.rs",
[all …]
/external/bazelbuild-rules_rust/test/rustfmt/
Drustfmt_failure_test.sh3 # Runs Bazel build commands over rustfmt rules, where some are expected
22 # ${2}: The target within "//test/rustfmt" to be tested.
26 (bazel test //test/rustfmt:"${2}") || ret="$?" && true
28 …>&2 echo "FAIL: Unexpected return code [saw: ${ret}, want: ${1}] building target //test/rustfmt:${…
29 >&2 echo " Run \"bazel test //test/rustfmt:${2}\" to see the output"
44 mkdir -p "${new_workspace}/test/rustfmt" && \
45 cp -r test/rustfmt/* "${new_workspace}/test/rustfmt/" && \
64 …sed ${SEDOPTS[@]} 's/"norustfmt"//' "${new_workspace}/test/rustfmt/rustfmt_integration_test_suite.…
65 …sed ${SEDOPTS[@]} 's/"manual"//' "${new_workspace}/test/rustfmt/rustfmt_integration_test_suite.bzl"
79 bazel run @rules_rust//tools/rustfmt -- //test/rustfmt:${variant}_unformatted_2018
[all …]
/external/rust/crates/prettyplease/
DREADME.md16 well-formatted source code. In contrast to rustfmt, this library is intended to
19 Rustfmt prioritizes high-quality output that is impeccable enough that you'd be
22 hard to format (for example [rustfmt#3697], and there are dozens more issues
28 [rustfmt#3697]: https://github.com/rust-lang/rustfmt/issues/3697
31 structures that can deliver about 95% of the quality of rustfmt-formatted
33 lines come out identical between rustfmt's formatting and this crate's. The rest
47 pretty-printer built into rustc, and rustfmt. The sections below go into more
50 | | prettyplease | rustc | rustfmt |
53 | idiomatic modern formatting ("locally indistinguishable from rustfmt") | �� | ❌ | �� |
64 ## Comparison to rustfmt
[all …]
/external/bazelbuild-rules_rust/tools/rustfmt/src/bin/
Dtest_main.rs8 // Perform rustfmt for each manifest available in main()
12 /// Run rustfmt on a set of Bazel targets
25 // Run rustfmt in run_rustfmt()
26 let status = Command::new(&options.rustfmt_config.rustfmt) in run_rustfmt()
34 .expect("Failed to run rustfmt"); in run_rustfmt()
46 /// A struct containing details used for executing rustfmt.
49 /// Information about the current rustfmt binary to run.
53 /// to check using rustfmt.
/external/rust/crates/prettyplease/src/
Dlib.rs16 //! well-formatted source code. In contrast to rustfmt, this library is intended
19 //! Rustfmt prioritizes high-quality output that is impeccable enough that you'd
22 //! that is hard to format (for example [rustfmt#3697], and there are dozens
28 //! [rustfmt#3697]: https://github.com/rust-lang/rustfmt/issues/3697
31 //! structures that can deliver about 95% of the quality of rustfmt-formatted
33 //! output lines come out identical between rustfmt's formatting and this
48 //! pretty-printer built into rustc, and rustfmt. The sections below go into
51 //! | | prettyplease | rustc | rustfmt |
54 //! | idiomatic modern formatting ("locally indistinguishable from rustfmt") | �� | ❌ | �� |
65 //! # Comparison to rustfmt
[all …]
/external/bazelbuild-rules_rust/tools/rustfmt/
DBUILD.bazel6 "rustfmt.toml",
22 "//:rustfmt.toml",
27 "RUSTFMT": "$(rootpath //rust/toolchain:current_rustfmt_toolchain)",
28 "RUSTFMT_CONFIG": "$(rootpath //:rustfmt.toml)",
36 name = "rustfmt",
41 "//:rustfmt.toml",
77 ":rustfmt",
/external/rust/crates/coset/.github/workflows/
Dci.yml27 components: rustfmt
46 components: rustfmt
65 components: rustfmt
83 components: rustfmt
101 components: rustfmt
119 components: rustfmt
130 components: rustfmt, clippy
150 components: rustfmt
161 components: rustfmt
175 components: rustfmt
/external/bazelbuild-rules_rust/rust/
Dknown_shas.bzl323 …"2018-10-30/rustfmt-beta-aarch64-unknown-linux-gnu.tar.gz": "bd97e8012277d49beececdf4125610c2d0112…
324 …"2018-10-30/rustfmt-beta-aarch64-unknown-linux-gnu.tar.xz": "c870098e642b38b5524fd3e0fc6902450d991…
325 …"2018-10-30/rustfmt-beta-i686-pc-windows-gnu.tar.gz": "3ff875db951d000cca8cda1f0bf43d25a2c8b8de59b…
326 …"2018-10-30/rustfmt-beta-i686-pc-windows-gnu.tar.xz": "c1f8ebab756d9d467931bc700e2a6dae2aee1ba369b…
327 …"2018-10-30/rustfmt-beta-i686-pc-windows-msvc.tar.gz": "d1dc14a92edcfe4599a6e84449daaa75700a808e63…
328 …"2018-10-30/rustfmt-beta-i686-pc-windows-msvc.tar.xz": "f9908b516d1d6d55fc27cd55dec8b8a464e8f333b0…
329 …"2018-10-30/rustfmt-beta-i686-unknown-freebsd.tar.gz": "72eb429ea96a4b91bf89ed83c4d1cd270c98066d26…
330 …"2018-10-30/rustfmt-beta-i686-unknown-freebsd.tar.xz": "df620426744c3f1151aede77e1048e16d104637c72…
331 …"2018-10-30/rustfmt-beta-i686-unknown-linux-gnu.tar.gz": "dc05ecd0b181d1d34b33871dc6197446eacb57b0…
332 …"2018-10-30/rustfmt-beta-i686-unknown-linux-gnu.tar.xz": "add69e5ce078567362d178d9304b7abd41dd7d63…
[all …]
/external/rust/crates/pin-project/tests/ui/pin_project/
Dimport_unnamed.rs15 #[rustfmt::skip]
17 #[rustfmt::skip]
19 #[rustfmt::skip]
21 #[rustfmt::skip]
23 #[rustfmt::skip]
Dvisibility.rs14 #[rustfmt::skip]
16 #[rustfmt::skip]
18 #[rustfmt::skip]
20 #[rustfmt::skip]
22 #[rustfmt::skip]
/external/rust/crates/textwrap/src/
Dindentation.rs162 #[rustfmt::skip]
178 #[rustfmt::skip]
201 #[rustfmt::skip]
217 #[rustfmt::skip]
235 #[rustfmt::skip]
257 #[rustfmt::skip]
279 #[rustfmt::skip]
293 #[rustfmt::skip]
307 #[rustfmt::skip]
321 #[rustfmt::skip]
[all …]
/external/rust/crates/walkdir/.github/workflows/
Dci.yml71 rustfmt:
72 name: rustfmt
84 components: rustfmt
85 - name: Install rustfmt
86 run: rustup component add rustfmt
/external/bazelbuild-rules_rust/
DBUILD.bazel97 # This setting is used by the rustfmt rules. See https://bazelbuild.github.io/rules_rust/rust_fmt.h…
99 name = "rustfmt.toml",
100 build_setting_default = "//tools/rustfmt:rustfmt.toml",
105 name = "rustfmt",
106 actual = "//tools/rustfmt",
/external/rust/crates/anyhow/tests/
Dtest_ensure.rs88 #[rustfmt::skip] in test_recursion()
174 #[rustfmt::skip] in test_if()
178 #[rustfmt::skip] in test_if()
185 #[rustfmt::skip] in test_if()
192 #[rustfmt::skip] in test_if()
199 #[rustfmt::skip] in test_if()
206 #[rustfmt::skip] in test_if()
216 #[rustfmt::skip] in test_loop()
223 #[rustfmt::skip] in test_loop()
230 #[rustfmt::skip] in test_loop()
[all …]
/external/rust/crates/cfg-if/.github/workflows/
Dmain.yml22 rustfmt:
23 name: Rustfmt
31 rustup component add rustfmt
32 - name: Run rustfmt
/external/rust/crates/bindgen-cli/
DCargo.toml.orig31 default = ["logging", "runtime", "which-rustfmt"]
35 # Dynamically discover a `rustfmt` binary using the `which` crate
36 which-rustfmt = ["bindgen/which-rustfmt"]
/external/rust/crates/quickcheck/.github/workflows/
Dci.yml60 rustfmt:
61 name: rustfmt
72 - name: Install rustfmt
73 run: rustup component add rustfmt
/external/rust/crates/sharded-slab/.github/workflows/
Dci.yml121 rustfmt:
122 name: Rustfmt (stable)
131 components: rustfmt
133 - name: Run rustfmt
151 - rustfmt
/external/uwb/
DPREUPLOAD.cfg2 rustfmt = true
5 rustfmt = --config-path=rustfmt.toml
/external/trusty/lk/
DPREUPLOAD.cfg4 rustfmt = true
7 rustfmt = --config-path=rustfmt.toml

12345678910>>...21