Skip to content

Commit f1236f7

Browse files
committed
Don't depend on libc for cfg(windows)
1 parent e0d996f commit f1236f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/std_detect/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ is-it-maintained-open-issues = { repository = "rust-lang/stdarch" }
2121
maintenance = { status = "experimental" }
2222

2323
[dependencies]
24-
libc = { version = "0.2", optional = true, default-features = false }
2524
cfg-if = "1.0.0"
2625

2726
# When built as part of libstd
2827
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
2928
compiler_builtins = { version = "0.1.2", optional = true }
3029
alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
3130

31+
[target.'cfg(not(windows))'.dependencies]
32+
libc = { version = "0.2.0", optional = true, default-features = false }
33+
3234
[dev-dependencies]
3335
cupid = "0.6.0"
3436

0 commit comments

Comments
 (0)