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"]
38 serde = { version = "1.0", features = ["derive"] }
40 unicode-segmentation = "1.0.0"
48 cargo_metadata = "0.14"
50 unicode-width = "0.1.5"
51 unicode_categories = "0.1.1"
54 annotate-snippets = { version = "0.8", features = ["color"] }
56 rustfmt-config_proc_macro = { version = "0.2", path = "config_proc_macro" }
61 # A noop dependency that changes in the Rust repository, it's a bit of a hack.
62 # See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
63 # for more information.
64 rustc-workspace-hack = "1.0.0"
66 # Rustc dependencies are loaded from the sysroot, Cargo doesn't know about them.