Skip to content

Commit

Permalink
fix: repeat versions in dev-dependencies
Browse files Browse the repository at this point in the history
Cargo is no longer happy with me not specifying versions of dev-dependencies. Previously this was okay if I only wanted to update the feature set of a dependency for tests.

On stable
```
warning: dependency (fake) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions
warning: dependency (serde) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions
warning: dependency (zeroize) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions
```

On nightly
```
error: failed to parse manifest at `/home/runner/work/redact/redact/Cargo.toml`

Caused by:
  dependency (fake) specified without providing a local path, Git repository, version, or workspace dependency to use
```
  • Loading branch information
eopb committed May 11, 2024
1 parent 9c632f6 commit 566f606
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 @@ -30,10 +30,10 @@ zeroize = { version = "1.7", optional = true, default-features = false }

[dev-dependencies]
redact = { features = ["serde", "fake", "zeroize"], path = "." }
fake = { features = ["derive"] }
serde = { features = ["derive"] }
fake = { version = "2.5", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
zeroize = { features = ["std"] }
zeroize = { version = "1.7", features = ["std"] }

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit 566f606

Please sign in to comment.