Skip to content

Commit

Permalink
fix: use no-deps parameter in cargo-metadata (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: stormshield-guillaumed <[email protected]>
  • Loading branch information
stormshield-kg and stormshield-guillaumed authored Feb 6, 2024
1 parent 020513d commit 612e61a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [ stable, "1.70" ] # Check latest stable and MSRV
toolchain: [ stable, "1.72" ] # Check latest stable and MSRV
os: [ ubuntu-latest, windows-latest, macos-latest ]

runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include = ["/src/", "/build.rs", "/LICENSE", "/NOTICE"]
keywords = ["cli", "cargo", "filter", "target"]
license = "Apache-2.0"
repository = "https://github.com/stormshield/cargo-ft"
rust-version = "1.70" # Sync this value with the CI workflow
rust-version = "1.72" # Sync this value with the CI workflow
description = "A cargo extension for specifying supported targets for a crate"

[dependencies]
Expand All @@ -17,7 +17,7 @@ anstyle = "1.0.5"
cargo-config2 = "0.1.18"
cargo_metadata = "0.18.1"
clap = { version = "4.4.15", features = ["derive"] }
clap-cargo = { version = "0.13.0", features = ["cargo_metadata"] }
clap-cargo = { version = "0.14.0", features = ["cargo_metadata"] }
error-stack = "0.4.1"
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ fn main() -> Result<ExitCode, RuntimeError> {
let metadata = ft_args
.manifest
.metadata()
.no_deps()
.other_options(manifest_options.clone().map(ToOwned::to_owned).collect::<Vec<_>>())
.verbose(true)
.exec()
Expand Down

0 comments on commit 612e61a

Please sign in to comment.