mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
b711f5689f
Currently, `rustc_errors` depends on `rustc_abi`, which depends on `rustc_error_messages`. This is a bit odd. `rustc_errors` depends on `rustc_abi` for a single reason: `rustc_abi` defines a type `TargetDataLayoutErrors` and `rustc_errors` impls `Diagnostic` for that type. We can get a more natural relationship by inverting the dependency, moving the `Diagnostic` trait upstream. Then `rustc_abi` defines `TargetDataLayoutErrors` and also impls `Diagnostic` for it. `rustc_errors` is already pretty far upstream in the crate graph, it doesn't hurt to push it a little further because errors are a very low-level concept.
38 lines
1.3 KiB
TOML
38 lines
1.3 KiB
TOML
[package]
|
|
name = "rustc_abi"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
# tidy-alphabetical-start
|
|
bitflags = "2.4.1"
|
|
rand = { version = "0.9.0", default-features = false, optional = true }
|
|
rand_xoshiro = { version = "0.7.0", optional = true }
|
|
rustc_data_structures = { path = "../rustc_data_structures", optional = true }
|
|
rustc_error_messages = { path = "../rustc_error_messages", optional = true }
|
|
rustc_errors = { path = "../rustc_errors", optional = true }
|
|
rustc_hashes = { path = "../rustc_hashes" }
|
|
rustc_index = { path = "../rustc_index", default-features = false }
|
|
rustc_macros = { path = "../rustc_macros", optional = true }
|
|
rustc_serialize = { path = "../rustc_serialize", optional = true }
|
|
rustc_span = { path = "../rustc_span", optional = true }
|
|
tracing = "0.1"
|
|
# tidy-alphabetical-end
|
|
|
|
[features]
|
|
# tidy-alphabetical-start
|
|
default = ["nightly", "randomize"]
|
|
# rust-analyzer depends on this crate and we therefore require it to build on a stable toolchain
|
|
# without depending on the rustc_* crates in the following list.
|
|
nightly = [
|
|
"dep:rustc_data_structures",
|
|
"dep:rustc_error_messages",
|
|
"dep:rustc_errors",
|
|
"dep:rustc_macros",
|
|
"dep:rustc_serialize",
|
|
"dep:rustc_span",
|
|
"rustc_index/nightly",
|
|
]
|
|
randomize = ["dep:rand", "dep:rand_xoshiro", "nightly"]
|
|
# tidy-alphabetical-end
|