Skip to content

Commit cfd1d62

Browse files
branchvincentBrewTestBot
authored andcommitted
cargo-edit 0.10.0
Closes #105845. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
1 parent 7d67f7e commit cfd1d62

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

Formula/cargo-edit.rb

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class CargoEdit < Formula
22
desc "Utility for managing cargo dependencies from the command-line"
33
homepage "https://killercup.github.io/cargo-edit/"
4-
url "https://github.com/killercup/cargo-edit/archive/v0.9.1.tar.gz"
5-
sha256 "bae2a59dcf6110fe0c8bf8562e58d550b2b3b3a02e89b233af5a3be12d41cdf0"
4+
url "https://github.com/killercup/cargo-edit/archive/v0.10.0.tar.gz"
5+
sha256 "fedc4200095d221935d4716fd8f4104e8607e5f4618c6c52580fef404e4d63b7"
66
license "MIT"
77

88
bottle do
@@ -30,20 +30,16 @@ def install
3030
[package]
3131
name = "demo-crate"
3232
version = "0.1.0"
33-
EOS
34-
35-
system bin/"cargo-add", "add", "clap@2", "serde"
36-
system bin/"cargo-add", "add", "-D", "just@0.8.3"
37-
manifest = (crate/"Cargo.toml").read
3833
39-
assert_match 'clap = "2"', manifest
40-
assert_match(/serde = "\d+(?:\.\d+)+"/, manifest)
41-
assert_match 'just = "0.8.3"', manifest
34+
[dependencies]
35+
clap = "2"
36+
EOS
4237

43-
system bin/"cargo-rm", "rm", "serde"
44-
manifest = (crate/"Cargo.toml").read
38+
system bin/"cargo-set-version", "set-version", "0.2.0"
39+
assert_match 'version = "0.2.0"', (crate/"Cargo.toml").read
4540

46-
refute_match(/serde/, manifest)
41+
system bin/"cargo-rm", "rm", "clap"
42+
refute_match(/clap/, (crate/"Cargo.toml").read)
4743
end
4844
end
4945
end

0 commit comments

Comments
 (0)