Don't depend on libc for cfg(windows)
This commit is contained in:
parent
613efc499c
commit
2a21235f7a
1 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue