From 3361c4d3845004605514e97c012c730caec70a3b Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 18 Apr 2024 21:46:59 +1000 Subject: [PATCH] Fix dep: `once_cell` is needed on all targets whenever feature parallel is enabled. Signed-off-by: Jiahao XU --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3b3fb02a..bb9cfc98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,12 +21,12 @@ rust-version = "1.63" [dependencies] jobserver = { version = "0.1.30", default-features = false, optional = true } +once_cell = { version = "1.19", optional = true } [target.'cfg(unix)'.dependencies] # Don't turn on the feature "std" for this, see https://github.com/rust-lang/cargo/issues/4866 # which is still an issue with `resolver = "1"`. libc = { version = "0.2.62", default-features = false, optional = true } -once_cell = { version = "1.19", optional = true } [features] parallel = ["libc", "jobserver", "once_cell"]