Don't depend on libc for cfg(windows)

This commit is contained in:
Ben Kimock 2024-04-19 16:46:32 -04:00 committed by Amanieu d'Antras
parent 613efc499c
commit 2a21235f7a

View file

@ -21,7 +21,6 @@ is-it-maintained-open-issues = { repository = "rust-lang/stdarch" }
maintenance = { status = "experimental" }
[dependencies]
libc = { version = "0.2", optional = true, default-features = false }
cfg-if = "1.0.0"
# When built as part of libstd
@ -29,6 +28,9 @@ core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core
compiler_builtins = { version = "0.1.2", optional = true }
alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
[target.'cfg(not(windows))'.dependencies]
libc = { version = "0.2.0", optional = true, default-features = false }
[dev-dependencies]
cupid = "0.6.0"