Lines Matching full:rustfmt
5 [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…
46 … To avoid failures, [`skip_children = true`](https://rust-lang.github.io/rustfmt/?version=v1.6.0&s…
47 is recommended to be set in the workspace's `rustfmt.toml` file which allows rustfmt to run on thes…
50 [rustfmt]: https://github.com/rust-lang/rustfmt#readme
53 [rgp]: https://rust-lang.github.io/rustfmt/