Lines Matching full:rustfmt
5 /// 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()
29 if !rustfmt.exists() { in parse_rustfmt_config()
30 panic!("rustfmt does not exist at: {}", rustfmt.display()); in parse_rustfmt_config()
40 "rustfmt config file does not exist at: {}", in parse_rustfmt_config()
45 RustfmtConfig { rustfmt, config } in parse_rustfmt_config()
48 /// A struct of target specific information for use in running `rustfmt`.
58 /// Parse rustfmt flags from a manifest generated by builds using `rustfmt_aspect`.
61 .unwrap_or_else(|_| panic!("Failed to read rustfmt manifest: {}", manifest.display())); in parse_rustfmt_manifest()