Skip to content

Commit

Permalink
Don't specify explicit version for dev-dependencies (#258)
Browse files Browse the repository at this point in the history
* Don't specify explicit version for dev-dependencies

alice@pop-os:~/Documents/Code/taffy$ cargo publish --dry-run
    Updating crates.io index
   Packaging taffy v0.2.0 (/home/alice/Documents/Code/taffy)
error: failed to prepare local package for uploading

Caused by:
  failed to select a version for the requirement `taffy = "^0.2.0"`
  candidate versions found which didn't match: 0.1.0
  location searched: crates.io index
  required by package `taffy v0.2.0 (/home/alice/Documents/Code/taffy)`

* Clean up cargo-deny warnings

* Bypass duplicate detection for taffy itself

* Remove stale duplicate allow
  • Loading branch information
alice-i-cecile authored Nov 24, 2022
1 parent 2d58c51 commit 664ce98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ criterion = "0.4"
rstest = "0.15.0"
rand = "0.8.5"
rand_chacha = "0.3.1"
# We need to explicitly set a version here so that cargo deny doesn't complain
# Don't forget to update this when bumping the version of taffy!
taffy = { path = ".", version = "0.2.0", features = ["random"] }

# Enable example and test-specific features
taffy = { path = ".", features = ["random"] }

[profile.release]
lto = true
Expand Down
6 changes: 4 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ unmaintained = "deny"
yanked = "deny"
notice = "deny"
ignore = [
"RUSTSEC-2021-0127" # from serde_cbor
"RUSTSEC-2021-0145" # from criterion, used only for benchmarking
]

[licenses]
Expand All @@ -26,7 +26,9 @@ wildcards = "deny"
highlight = "all"
# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
{ name = "itoa", version = "1.0.2" }
# Bypass problems with wildcard dependencies for dev-dependncies.
# Proper fix requires https://github.com/EmbarkStudios/cargo-deny/issues/448
{ name = "taffy" }
]

[sources]
Expand Down

0 comments on commit 664ce98

Please sign in to comment.