3 name = "rustfmt-nightly"
5 description = "Tool to find and fix Rust formatting issues"
6 repository = "https://github.com/rust-lang/rustfmt"
8 license = "Apache-2.0/MIT"
10 categories = ["development-tools"]
15 path = "src/bin/main.rs"
19 path = "src/cargo-fmt/main.rs"
22 name = "rustfmt-format-diff"
23 path = "src/format-diff/main.rs"
27 path = "src/git-rustfmt/main.rs"
30 default = ["cargo-fmt", "rustfmt-format-diff"]
32 rustfmt-format-diff = []
33 generic-simd = ["bytecount/generic-simd"]
36 annotate-snippets = { version = "0.9", features = ["color"] }
39 cargo_metadata = "0.14"
40 clap = { version = "3.1", features = ["derive"] }
51 serde = { version = "1.0", features = ["derive"] }
56 unicode-segmentation = "1.9"
58 unicode_categories = "0.1"
60 rustfmt-config_proc_macro = { version = "0.2", path = "config_proc_macro" }
62 # A noop dependency that changes in the Rust repository, it's a bit of a hack.
63 # See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
64 # for more information.
65 rustc-workspace-hack = "1.0.0"
67 # Rustc dependencies are loaded from the sysroot, Cargo doesn't know about them.