Skip to content

Commit 0fb294a

Browse files
committed
Add required-features
1 parent eaa4f37 commit 0fb294a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Cargo.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,30 @@ edition = "2018"
1414
[[bin]]
1515
name = "rustfmt"
1616
path = "src/rustfmt/main.rs"
17+
required-features = ["rustfmt"]
1718

1819
[[bin]]
1920
name = "cargo-fmt"
2021
path = "src/cargo-fmt/main.rs"
22+
required-features = ["cargo-fmt"]
2123

2224
[[bin]]
2325
name = "rustfmt-format-diff"
2426
path = "src/format-diff/main.rs"
27+
required-features = ["rustfmt-format-diff"]
2528

2629
[[bin]]
2730
name = "git-rustfmt"
2831
path = "src/git-rustfmt/main.rs"
32+
required-features = ["git-rustfmt"]
2933

3034
[features]
31-
default = ["cargo-fmt", "config", "emitter", "rustfmt-format-diff"]
32-
cargo-fmt = ["cargo_metadata", "structopt"]
35+
default = ["config", "emitter"]
36+
cargo-fmt = [
37+
"cargo_metadata",
38+
"structopt",
39+
]
40+
3341
rustfmt-format-diff = [
3442
"env_logger",
3543
"serde",

0 commit comments

Comments
 (0)