Skip to content

Commit

Permalink
Fix dep: once_cell is needed on all targets
Browse files Browse the repository at this point in the history
whenever feature parallel is enabled.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Apr 18, 2024
1 parent 2d3c859 commit 3361c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -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"]
Expand Down

0 comments on commit 3361c4d

Please sign in to comment.