-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This included splitting `Manifest::get_table_mut` into two functions with inserting and erroring (non-inserting) variants to allow for nested lookup for `rm`
- Loading branch information
1 parent
bab71db
commit fdb12eb
Showing
20 changed files
with
356 additions
and
44 deletions.
There are no files selected for viewing
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
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
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 @@ | ||
rm-target.in |
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,35 @@ | ||
[package] | ||
name = "cargo-rm-target-test-fixture" | ||
version = "0.1.0" | ||
|
||
[[bin]] | ||
name = "main" | ||
path = "src/main.rs" | ||
|
||
[target.x86_64-unknown-freebsd.build-dependencies] | ||
semver = "0.1.0" | ||
|
||
[target.x86_64-unknown-linux-gnu.build-dependencies] | ||
semver = "0.1.0" | ||
|
||
[dependencies] | ||
docopt = "0.6" | ||
pad = "0.1" | ||
rustc-serialize = "0.3" | ||
semver = "0.1" | ||
toml = "0.1" | ||
clippy = {git = "https://github.com/Manishearth/rust-clippy.git", optional = true} | ||
|
||
[target.x86_64-unknown-linux-gnu.dependencies] | ||
dbus = "0.9.5" | ||
|
||
[dev-dependencies] | ||
regex = "0.1.41" | ||
serde = "1.0.90" | ||
|
||
[target.x86_64-unknown-linux-gnu.dev-dependencies] | ||
ncurses = "5.101" | ||
|
||
[features] | ||
std = ["serde/std", "semver/std"] | ||
annoy = ["clippy"] |
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,15 @@ | ||
bin.name = "cargo-rm" | ||
args = ["rm", "--target", "powerpc-unknown-linux-gnu", "dbus"] | ||
status.code = 1 | ||
stdout = "" | ||
stderr = """ | ||
Removing dbus from dependencies for target `powerpc-unknown-linux-gnu` | ||
Could not edit `Cargo.toml`. | ||
ERROR: The table `powerpc-unknown-linux-gnu` could not be found. | ||
Error: The table `powerpc-unknown-linux-gnu` could not be found. | ||
""" | ||
fs.sandbox = true | ||
|
||
[env.add] | ||
CARGO_IS_TEST="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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm-target.in |
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,35 @@ | ||
[package] | ||
name = "cargo-rm-target-test-fixture" | ||
version = "0.1.0" | ||
|
||
[[bin]] | ||
name = "main" | ||
path = "src/main.rs" | ||
|
||
[target.x86_64-unknown-freebsd.build-dependencies] | ||
semver = "0.1.0" | ||
|
||
[target.x86_64-unknown-linux-gnu.build-dependencies] | ||
semver = "0.1.0" | ||
|
||
[dependencies] | ||
docopt = "0.6" | ||
pad = "0.1" | ||
rustc-serialize = "0.3" | ||
semver = "0.1" | ||
toml = "0.1" | ||
clippy = {git = "https://github.com/Manishearth/rust-clippy.git", optional = true} | ||
|
||
[target.x86_64-unknown-linux-gnu.dependencies] | ||
dbus = "0.9.5" | ||
|
||
[dev-dependencies] | ||
regex = "0.1.41" | ||
serde = "1.0.90" | ||
|
||
[target.x86_64-unknown-linux-gnu.dev-dependencies] | ||
ncurses = "5.101" | ||
|
||
[features] | ||
std = ["serde/std", "semver/std"] | ||
annoy = ["clippy"] |
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,15 @@ | ||
bin.name = "cargo-rm" | ||
args = ["rm", "--target", "x86_64-unknown-linux-gnu", "toml"] | ||
status.code = 1 | ||
stdout = "" | ||
stderr = """ | ||
Removing toml from dependencies for target `x86_64-unknown-linux-gnu` | ||
Could not edit `Cargo.toml`. | ||
ERROR: The dependency `toml` could not be found in `target.x86_64-unknown-linux-gnu.dependencies`. | ||
Error: The dependency `toml` could not be found in `target.x86_64-unknown-linux-gnu.dependencies`. | ||
""" | ||
fs.sandbox = true | ||
|
||
[env.add] | ||
CARGO_IS_TEST="1" |
Oops, something went wrong.