forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(remove): Extend the formatting tested
- Loading branch information
Showing
6 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
tests/testsuite/cargo_remove/optional_dep_feature_formatting/in
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
tests/testsuite/cargo_remove/optional_dep_feature_formatting/in/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[package] | ||
name = "cargo-remove-test-fixture" | ||
version = "0.1.0" | ||
|
||
[[bin]] | ||
name = "main" | ||
path = "src/main.rs" | ||
|
||
[build-dependencies] | ||
semver = "0.1.0" | ||
|
||
[dependencies] | ||
docopt = { version = "0.6", optional = true } | ||
rustc-serialize = { version = "0.4", optional = true } | ||
semver = "0.1" | ||
toml = { version = "0.1", optional = true } | ||
clippy = { version = "0.4", optional = true } | ||
|
||
[dev-dependencies] | ||
regex = "0.1.1" | ||
serde = "1.0.90" | ||
|
||
[features] | ||
std = [ | ||
# Leading clippy | ||
"dep:clippy", # trailing clippy | ||
|
||
# Leading docopt | ||
"dep:docopt", # trailing docopt | ||
|
||
# Leading rustc-serialize | ||
"dep:rustc-serialize", # trailing rustc-serialize | ||
|
||
# Leading serde/std | ||
"serde/std", # trailing serde/std | ||
|
||
# Leading semver/std | ||
"semver/std", # trailing semver/std | ||
|
||
# Leading toml | ||
"dep:toml", # trailing toml | ||
] |
1 change: 1 addition & 0 deletions
1
tests/testsuite/cargo_remove/optional_dep_feature_formatting/in/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
tests/testsuite/cargo_remove/optional_dep_feature_formatting/stderr.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Removing serde from dev-dependencies | ||
Removing docopt from dependencies | ||
Removing toml from dependencies |