Skip to content

Commit

Permalink
Merge pull request #79 from dtolnay-contrib/deps
Browse files Browse the repository at this point in the history
Omit serde/serde_json from lockfiles not using cargo_metadata
  • Loading branch information
epage authored Jan 3, 2025
2 parents 9b76d52 + 80914f3 commit a37548f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ pre-release-replacements = [
[features]
default = ["clap"]
clap = ["dep:clap"]
cargo_metadata = ["dep:cargo_metadata"]
cargo_metadata = ["dep:cargo_metadata", "dep:serde", "dep:serde_json"]

[dependencies]
anstyle = "1.0.3"
cargo_metadata = { version = "0.19", optional = true }
clap = { version = "4.4.1", default-features = false, features = ["std", "derive"], optional = true }

[target.'cfg(any())'.dependencies]
serde = "1.0.210" # HACK: bad minimal dep in cargo_metadata
serde_json = "1.0.133" # HACK: bad minimal dep in cargo_metadata
serde = { version = "1.0.210", optional = true } # HACK: bad minimal dep in cargo_metadata
serde_json = { version = "1.0.133", optional = true } # HACK: bad minimal dep in cargo_metadata

[[example]]
name = "flags"
Expand Down

0 comments on commit a37548f

Please sign in to comment.