summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-14 08:35:50 +0200
committerGitHub <noreply@github.com>2024-06-14 08:35:50 +0200
commit9f2fc640f343a5f89e3243e56aa0b350f26dde30 (patch)
treed5ce3421633a3bc184438790f93e88358add7506 /compiler/rustc_data_structures
parente1e72aa4862497cade2a718c67825260841fffe3 (diff)
parent12432130a37e1637690df3dc70c31ecb866e3183 (diff)
downloadrust-9f2fc640f343a5f89e3243e56aa0b350f26dde30.tar.gz
rust-9f2fc640f343a5f89e3243e56aa0b350f26dde30.zip
Rollup merge of #126368 - nnethercote:rm-more-unused-crate-deps, r=jackh726
Remove some unnecessary crate dependencies.

A follow-up to #126063.

r? ``@jackh726``
Diffstat (limited to 'compiler/rustc_data_structures')
-rw-r--r--compiler/rustc_data_structures/Cargo.toml6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/Cargo.toml b/compiler/rustc_data_structures/Cargo.toml
index 6876046a583..ff0a94f8e9b 100644
--- a/compiler/rustc_data_structures/Cargo.toml
+++ b/compiler/rustc_data_structures/Cargo.toml
@@ -12,7 +12,6 @@ elsa = "=1.7.1"
 ena = "0.14.3"
 indexmap = { version = "2.0.0" }
 jobserver_crate = { version = "0.1.28", package = "jobserver" }
-libc = "0.2"
 measureme = "11"
 rustc-hash = "1.1.0"
 rustc-rayon = { version = "0.5.0", optional = true }
@@ -41,6 +40,11 @@ features = [
     "Win32_System_Threading",
 ]
 
+[target.'cfg(unix)'.dependencies]
+# tidy-alphabetical-start
+libc = "0.2"
+# tidy-alphabetical-end
+
 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
 # tidy-alphabetical-start
 memmap2 = "0.2.1"