From 566f606c097c73fbbcb3c7700467ced61d082191 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Sat, 11 May 2024 10:25:04 +0100 Subject: [PATCH] fix: repeat versions in dev-dependencies 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 ``` --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 440425e..640a0ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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