Skip to content

Commit 8ff624a

Browse files
committedOct 29, 2023
Clean up rustc_*/Cargo.toml.
- Sort dependencies and features sections. - Add `tidy` markers to the sorted sections so they stay sorted. - Remove empty `[lib`] sections. - Remove "See more keys..." comments. Excluded files: - rustc_codegen_{cranelift,gcc}, because they're external. - rustc_lexer, because it has external use. - stable_mir, because it has external use.
1 parent 28e60de commit 8ff624a

File tree

64 files changed

+400
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+400
-299
lines changed
 

‎compiler/rustc/Cargo.toml

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,31 @@ version = "0.0.0"
44
edition = "2021"
55

66
[dependencies]
7-
rustc_driver = { path = "../rustc_driver" }
8-
rustc_driver_impl = { path = "../rustc_driver_impl" }
7+
# tidy-alphabetical-start
98

109
# Make sure rustc_codegen_ssa ends up in the sysroot, because this
1110
# crate is intended to be used by codegen backends, which may not be in-tree.
1211
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
12+
13+
rustc_driver = { path = "../rustc_driver" }
14+
rustc_driver_impl = { path = "../rustc_driver_impl" }
15+
1316
# Make sure rustc_smir ends up in the sysroot, because this
14-
# crate is intended to be used by stable MIR consumers, which are not in-tree
17+
# crate is intended to be used by stable MIR consumers, which are not in-tree.
1518
rustc_smir = { path = "../rustc_smir" }
19+
1620
stable_mir = { path = "../stable_mir" }
21+
# tidy-alphabetical-end
1722

1823
[dependencies.jemalloc-sys]
1924
version = "0.5.0"
2025
optional = true
2126
features = ['unprefixed_malloc_on_supported_platforms']
2227

2328
[features]
29+
# tidy-alphabetical-start
2430
jemalloc = ['jemalloc-sys']
2531
llvm = ['rustc_driver_impl/llvm']
2632
max_level_info = ['rustc_driver_impl/max_level_info']
2733
rustc_use_parallel_compiler = ['rustc_driver_impl/rustc_use_parallel_compiler']
34+
# tidy-alphabetical-end

‎compiler/rustc_abi/Cargo.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ version = "0.0.0"
44
edition = "2021"
55

66
[dependencies]
7+
# tidy-alphabetical-start
78
bitflags = "1.2.1"
8-
tracing = "0.1"
99
rand = { version = "0.8.4", default-features = false, optional = true }
1010
rand_xoshiro = { version = "0.6.0", optional = true }
1111
rustc_data_structures = { path = "../rustc_data_structures", optional = true }
1212
rustc_index = { path = "../rustc_index", default-features = false }
1313
rustc_macros = { path = "../rustc_macros", optional = true }
1414
rustc_serialize = { path = "../rustc_serialize", optional = true }
15+
tracing = "0.1"
16+
# tidy-alphabetical-end
1517

1618
[features]
19+
# tidy-alphabetical-start
1720
default = ["nightly", "randomize"]
18-
randomize = ["rand", "rand_xoshiro", "nightly"]
1921
# rust-analyzer depends on this crate and we therefore require it to built on a stable toolchain
2022
# without depending on rustc_data_structures, rustc_macros and rustc_serialize
2123
nightly = [
@@ -24,3 +26,5 @@ nightly = [
2426
"rustc_macros",
2527
"rustc_serialize",
2628
]
29+
randomize = ["rand", "rand_xoshiro", "nightly"]
30+
# tidy-alphabetical-end

0 commit comments

Comments
 (0)
Please sign in to comment.