Fix/dep cargo_toml: Bump to v0.12.1 (#418)

* Fix `cargo_toml`: Bump dep to v0.12.1
* Test `cargo-watch` in CI
* Fix `*-test-Cargo.toml` used in integration tests

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-09-25 13:01:57 +10:00 committed by GitHub
parent c86cba3cc4
commit ae9f536400
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 5 deletions

View file

@ -13,3 +13,4 @@ bin-dir = "{ bin }{ binary-ext }"
[[bin]]
name = "cargo-binstall"
path = "src/main.rs"

View file

@ -13,3 +13,4 @@ bin-dir = "{ bin }{ binary-ext }"
[[bin]]
name = "cargo-binstall"
path = "src/main.rs"

View file

@ -13,3 +13,4 @@ bin-dir = "{ bin }{ binary-ext }"
[[bin]]
name = "cargo-binstall"
path = "src/main.rs"

View file

@ -7,14 +7,15 @@ unset CARGO_HOME
# Install binaries using cargo-binstall
# shellcheck disable=SC2086
"./$1" binstall --log-level debug --no-confirm b3sum cargo-binstall
"./$1" binstall --log-level debug --no-confirm b3sum cargo-binstall cargo-watch
# Test that the installed binaries can be run
b3sum --version
cargo-binstall --help >/dev/null
cargo binstall --help >/dev/null
cargo watch -V
test_resources=".github/scripts"
test_resources=".github/scripts/cargo-tomls"
# Install binaries using `--manifest-path`
"./$1" binstall --force --log-level debug --manifest-path "$test_resources/gitlab-test-Cargo.toml" --no-confirm cargo-binstall

4
Cargo.lock generated
View file

@ -221,9 +221,9 @@ dependencies = [
[[package]]
name = "cargo_toml"
version = "0.12.0"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1aecd74f843e919090741163a59948751f6f57b5a9b3d7a4a4d278e17b6a16cf"
checksum = "c820ea238df9b9054d3401b1d441b4cd6f461646fc55cbc60fabf9d2088b7f3a"
dependencies = [
"serde",
"toml",

View file

@ -13,7 +13,7 @@ license = "GPL-3.0"
async-trait = "0.1.57"
bytes = "1.2.1"
bzip2 = "0.4.3"
cargo_toml = "0.12.0"
cargo_toml = "0.12.1"
clap = { version = "3.2.22", features = ["derive"] }
compact_str = { version = "0.6.0", features = ["serde"] }
crates_io_api = { version = "0.8.1", default-features = false }