Skip to content

Commit 3338ee3

Browse files
committed
drop unused deps, gate libc under unix for one crate
1 parent ccb6290 commit 3338ee3

File tree

13 files changed

+3
-23
lines changed

13 files changed

+3
-23
lines changed

Cargo.lock

-11
Original file line numberDiff line numberDiff line change
@@ -3093,7 +3093,6 @@ dependencies = [
30933093
"serde",
30943094
"serde_json",
30953095
"smallvec",
3096-
"tempfile",
30973096
"tracing",
30983097
]
30993098

@@ -3187,7 +3186,6 @@ dependencies = [
31873186
"rustc_macros",
31883187
"rustc_serialize",
31893188
"smallvec",
3190-
"stable_deref_trait",
31913189
"stacker",
31923190
"tempfile",
31933191
"thin-vec",
@@ -3401,7 +3399,6 @@ dependencies = [
34013399
"rustc_trait_selection",
34023400
"rustc_type_ir",
34033401
"smallvec",
3404-
"thin-vec",
34053402
"tracing",
34063403
]
34073404

@@ -3538,7 +3535,6 @@ dependencies = [
35383535
"rustc_trait_selection",
35393536
"rustc_traits",
35403537
"rustc_ty_utils",
3541-
"smallvec",
35423538
"tracing",
35433539
]
35443540

@@ -3646,7 +3642,6 @@ dependencies = [
36463642
"rustc_span",
36473643
"rustc_target",
36483644
"rustc_type_ir",
3649-
"smallvec",
36503645
"snap",
36513646
"tempfile",
36523647
"tracing",
@@ -3776,7 +3771,6 @@ dependencies = [
37763771
"rustc_target",
37773772
"serde",
37783773
"serde_json",
3779-
"smallvec",
37803774
"tracing",
37813775
]
37823776

@@ -3895,7 +3889,6 @@ version = "0.0.0"
38953889
dependencies = [
38963890
"parking_lot 0.11.2",
38973891
"rustc-rayon-core",
3898-
"rustc_arena",
38993892
"rustc_ast",
39003893
"rustc_data_structures",
39013894
"rustc_errors",
@@ -3965,7 +3958,6 @@ dependencies = [
39653958
"rustc_fluent_macro",
39663959
"rustc_fs_util",
39673960
"rustc_hir",
3968-
"rustc_index",
39693961
"rustc_lint_defs",
39703962
"rustc_macros",
39713963
"rustc_serialize",
@@ -4034,7 +4026,6 @@ dependencies = [
40344026
"rustc_data_structures",
40354027
"rustc_feature",
40364028
"rustc_fs_util",
4037-
"rustc_index",
40384029
"rustc_macros",
40394030
"rustc_serialize",
40404031
"rustc_span",
@@ -4052,7 +4043,6 @@ checksum = "8ba09476327c4b70ccefb6180f046ef588c26a24cf5d269a9feba316eb4f029f"
40524043
name = "rustc_trait_selection"
40534044
version = "0.0.0"
40544045
dependencies = [
4055-
"itertools",
40564046
"rustc_ast",
40574047
"rustc_attr",
40584048
"rustc_data_structures",
@@ -4084,7 +4074,6 @@ dependencies = [
40844074
"rustc_ast",
40854075
"rustc_data_structures",
40864076
"rustc_hir",
4087-
"rustc_index",
40884077
"rustc_infer",
40894078
"rustc_middle",
40904079
"rustc_span",

compiler/rustc_codegen_llvm/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,5 @@ rustc_target = { path = "../rustc_target" }
3636
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
3737
rustc_ast = { path = "../rustc_ast" }
3838
rustc_span = { path = "../rustc_span" }
39-
tempfile = "3.2.0"
4039
serde = { version = "1", features = [ "derive" ]}
4140
serde_json = "1"

compiler/rustc_codegen_ssa/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ bitflags = "1.2.1"
1212
cc = "1.0.69"
1313
itertools = "0.10.1"
1414
tracing = "0.1"
15-
libc = "0.2.50"
1615
jobserver = "0.1.22"
1716
tempfile = "3.2"
1817
thorin-dwp = "0.4"
@@ -43,6 +42,9 @@ rustc_query_system = { path = "../rustc_query_system" }
4342
rustc_target = { path = "../rustc_target" }
4443
rustc_session = { path = "../rustc_session" }
4544

45+
[target.'cfg(unix)'.dependencies]
46+
libc = "0.2.50"
47+
4648
[dependencies.object]
4749
version = "0.30.1"
4850
default-features = false

compiler/rustc_data_structures/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ smallvec = { version = "1.8.1", features = [
2626
"union",
2727
"may_dangle",
2828
] }
29-
stable_deref_trait = "1.0.0"
3029
stacker = "0.1.15"
3130
tempfile = "3.2"
3231
thin-vec = "0.2.12"

compiler/rustc_hir_analysis/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ rustc_trait_selection = { path = "../rustc_trait_selection" }
2727
rustc_lint_defs = { path = "../rustc_lint_defs" }
2828
rustc_type_ir = { path = "../rustc_type_ir" }
2929
rustc_feature = { path = "../rustc_feature" }
30-
thin-vec = "0.2.12"
3130
tracing = "0.1"

compiler/rustc_interface/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ libloading = "0.7.1"
1010
tracing = "0.1"
1111
rustc-rayon-core = { version = "0.5.0", optional = true }
1212
rustc-rayon = { version = "0.5.0", optional = true }
13-
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
1413
rustc_ast = { path = "../rustc_ast" }
1514
rustc_attr = { path = "../rustc_attr" }
1615
rustc_borrowck = { path = "../rustc_borrowck" }

compiler/rustc_metadata/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ libloading = "0.7.1"
1111
odht = { version = "0.3.1", features = ["nightly"] }
1212
snap = "1"
1313
tracing = "0.1"
14-
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
1514
tempfile = "3.2"
1615
rustc_middle = { path = "../rustc_middle" }
1716
rustc_attr = { path = "../rustc_attr" }

compiler/rustc_monomorphize/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition = "2021"
88
[dependencies]
99
serde = "1"
1010
serde_json = "1"
11-
smallvec = { version = "1.8.1", features = [ "union", "may_dangle" ] }
1211
tracing = "0.1"
1312
rustc_data_structures = { path = "../rustc_data_structures" }
1413
rustc_errors = { path = "../rustc_errors" }

compiler/rustc_query_system/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
parking_lot = "0.11"
10-
rustc_arena = { path = "../rustc_arena" }
1110
rustc_ast = { path = "../rustc_ast" }
1211
rustc_data_structures = { path = "../rustc_data_structures" }
1312
rustc_errors = { path = "../rustc_errors" }

compiler/rustc_session/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ rustc_fluent_macro = { path = "../rustc_fluent_macro" }
1414
rustc_target = { path = "../rustc_target" }
1515
rustc_serialize = { path = "../rustc_serialize" }
1616
rustc_data_structures = { path = "../rustc_data_structures" }
17-
rustc_index = { path = "../rustc_index" }
1817
rustc_span = { path = "../rustc_span" }
1918
rustc_fs_util = { path = "../rustc_fs_util" }
2019
rustc_ast = { path = "../rustc_ast" }

compiler/rustc_target/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ rustc_fs_util = { path = "../rustc_fs_util" }
1111
rustc_abi = { path = "../rustc_abi" }
1212
rustc_data_structures = { path = "../rustc_data_structures" }
1313
rustc_feature = { path = "../rustc_feature" }
14-
rustc_index = { path = "../rustc_index" }
1514
rustc_macros = { path = "../rustc_macros" }
1615
rustc_serialize = { path = "../rustc_serialize" }
1716
rustc_span = { path = "../rustc_span" }

compiler/rustc_trait_selection/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ rustc_span = { path = "../rustc_span" }
2525
rustc_target = { path = "../rustc_target" }
2626
rustc_transmute = { path = "../rustc_transmute", features = ["rustc"] }
2727
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
28-
itertools = "0.10.1"

compiler/rustc_traits/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ tracing = "0.1"
88
rustc_middle = { path = "../rustc_middle" }
99
rustc_data_structures = { path = "../rustc_data_structures" }
1010
rustc_hir = { path = "../rustc_hir" }
11-
rustc_index = { path = "../rustc_index" }
1211
rustc_ast = { path = "../rustc_ast" }
1312
rustc_span = { path = "../rustc_span" }
1413
rustc_target = { path = "../rustc_target" }

0 commit comments

Comments
 (0)