Skip to content

Commit

Permalink
Merge pull request #780 from cassaundra/merge-rm-lock
Browse files Browse the repository at this point in the history
Update `Cargo.lock` in remove, fix versions in tests
  • Loading branch information
epage authored Sep 8, 2022
2 parents 73d57be + 078968b commit bda1be9
Show file tree
Hide file tree
Showing 120 changed files with 349 additions and 685 deletions.
8 changes: 7 additions & 1 deletion crates/cargo-remove/src/bin/cargo/commands/remove.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use cargo::core::dependency::DepKind;
use cargo::ops::resolve_ws;
use cargo::util::command_prelude::*;

use cargo_remove::ops::cargo_remove::remove;
Expand Down Expand Up @@ -82,9 +83,14 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
section,
dry_run,
};

remove(&options)?;

if !dry_run {
// Reload the workspace since we've changed dependencies
let ws = args.workspace(config)?;
resolve_ws(&ws)?;
}

Ok(())
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}
clippy = "0.4"

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}
clippy = "0.4"

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}
clippy = "0.4"

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,20 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}
clippy = "0.4"

[target.x86_64-unknown-linux-gnu.dependencies]
dbus = "0.9.5"
dbus = "0.6.2"

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[target.x86_64-unknown-linux-gnu.dev-dependencies]
ncurses = "5.101"
ncurses = "20.0"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,20 @@ semver = "0.1.0"

[dependencies]
docopt = "0.6"
pad = "0.1"
rustc-serialize = "0.3"
rustc-serialize = "0.4"
semver = "0.1"
toml = "0.1"
clippy = {git = "https:/Manishearth/rust-clippy.git", optional = true}
clippy = "0.4"

[target.x86_64-unknown-linux-gnu.dependencies]
dbus = "0.9.5"
dbus = "0.6.2"

[dev-dependencies]
regex = "0.1.41"
regex = "0.1.1"
serde = "1.0.90"

[target.x86_64-unknown-linux-gnu.dev-dependencies]
ncurses = "5.101"
ncurses = "20.0"

[features]
std = ["serde/std", "semver/std"]
annoy = ["clippy"]

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn case() {

snapbox::cmd::Command::cargo_ui()
.arg("remove")
.args(["--build", "semver"])
.args(["--build", "docopt"])
.current_dir(cwd)
.assert()
.code(101)
Expand Down
Loading

0 comments on commit bda1be9

Please sign in to comment.