]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/Cargo.toml
Rollup merge of #106856 - vadorovsky:fix-atomic-annotations, r=joshtriplett
[rust.git] / src / tools / rustfmt / Cargo.toml
1 [package]
2
3 name = "rustfmt-nightly"
4 version = "1.5.2"
5 description = "Tool to find and fix Rust formatting issues"
6 repository = "https://github.com/rust-lang/rustfmt"
7 readme = "README.md"
8 license = "Apache-2.0/MIT"
9 build = "build.rs"
10 categories = ["development-tools"]
11 edition = "2021"
12
13 [[bin]]
14 name = "rustfmt"
15 path = "src/bin/main.rs"
16
17 [[bin]]
18 name = "cargo-fmt"
19 path = "src/cargo-fmt/main.rs"
20
21 [[bin]]
22 name = "rustfmt-format-diff"
23 path = "src/format-diff/main.rs"
24
25 [[bin]]
26 name = "git-rustfmt"
27 path = "src/git-rustfmt/main.rs"
28
29 [features]
30 default = ["cargo-fmt", "rustfmt-format-diff"]
31 cargo-fmt = []
32 rustfmt-format-diff = []
33 generic-simd = ["bytecount/generic-simd"]
34
35 [dependencies]
36 annotate-snippets = { version = "0.9", features = ["color"] }
37 anyhow = "1.0"
38 bytecount = "0.6"
39 cargo_metadata = "0.14"
40 clap = { version = "3.1", features = ["derive"] }
41 derive-new = "0.5"
42 diff = "0.1"
43 dirs = "4.0"
44 env_logger = "0.9"
45 getopts = "0.2"
46 ignore = "0.4"
47 itertools = "0.10"
48 lazy_static = "1.4"
49 log = "0.4"
50 regex = "1.5"
51 serde = { version = "1.0", features = ["derive"] }
52 serde_json = "1.0"
53 term = "0.7"
54 thiserror = "1.0"
55 toml = "0.5"
56 unicode-segmentation = "1.9"
57 unicode-width = "0.1"
58 unicode_categories = "0.1"
59
60 rustfmt-config_proc_macro = { version = "0.3", path = "config_proc_macro" }
61
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"
66
67 # Rustc dependencies are loaded from the sysroot, Cargo doesn't know about them.
68
69 [package.metadata.rust-analyzer]
70 # This package uses #[feature(rustc_private)]
71 rustc_private = true