forked from rust-lang/rustfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
61 lines (50 loc) · 1.58 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
name = "rustfmt-nightly"
version = "2.0.0-rc.1"
authors = ["Nicholas Cameron <[email protected]>", "The Rustfmt developers"]
description = "Tool to find and fix Rust formatting issues"
repository = "https://github.com/rust-lang/rustfmt"
readme = "README.md"
license = "Apache-2.0/MIT"
build = "rustfmt-core/rustfmt-bin/build.rs"
categories = ["development-tools"]
edition = "2018"
[[bin]]
name = "rustfmt"
path = "rustfmt-core/rustfmt-bin/src/bin/main.rs"
test = false
[[bin]]
name = "cargo-fmt"
path = "rustfmt-core/rustfmt-bin/src/cargo-fmt/main.rs"
test = false
[[bin]]
name = "rustfmt-format-diff"
path = "rustfmt-core/rustfmt-bin/src/format-diff/main.rs"
test = false
[[bin]]
name = "git-rustfmt"
path = "rustfmt-core/rustfmt-bin/src/git-rustfmt/main.rs"
test = false
[features]
default = ["cargo-fmt", "rustfmt-format-diff"]
cargo-fmt = ["cargo_metadata"]
rustfmt-format-diff = ["regex", "serde", "serde_json"]
generic-simd = ["rustfmt_lib/generic-simd"]
[dependencies]
anyhow = "1.0"
env_logger = "0.7"
log = "0.4"
structopt = "0.3"
term = "0.6"
thiserror = "1.0"
cargo_metadata = { version = "0.9", optional = true }
regex = { version = "1.0", optional = true }
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
rustfmt_lib = { path = "rustfmt-core/rustfmt-lib", version = "2.0.0-rc.1" }
[dev-dependencies]
lazy_static = "1.0"
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
# for more information.
rustc-workspace-hack = "1.0.0"