Some crates depend on `rustc_hir` but only want `HirId` and similar id types. `rustc_hir` is a heavy dependency, since it pulls in `rustc_target`. Split these types out into their own crate `rustc_hir_id`. This allows `rustc_errors` to drop its direct dependency on `rustc_hir`. (`rustc_errors` still depends on `rustc_hir` indirectly through `rustc_lint_defs`; a subsequent commit will fix that.)
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
name = "rustc_errors"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
# tidy-alphabetical-start
|
|
annotate-snippets = "0.11"
|
|
derive_setters = "0.1.6"
|
|
rustc_abi = { path = "../rustc_abi" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_error_codes = { path = "../rustc_error_codes" }
|
|
rustc_error_messages = { path = "../rustc_error_messages" }
|
|
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
|
|
rustc_hashes = { path = "../rustc_hashes" }
|
|
rustc_hir_id = { path = "../rustc_hir_id" }
|
|
rustc_index = { path = "../rustc_index" }
|
|
rustc_lexer = { path = "../rustc_lexer" }
|
|
rustc_lint_defs = { path = "../rustc_lint_defs" }
|
|
rustc_macros = { path = "../rustc_macros" }
|
|
rustc_serialize = { path = "../rustc_serialize" }
|
|
rustc_span = { path = "../rustc_span" }
|
|
serde = { version = "1.0.125", features = ["derive"] }
|
|
serde_json = "1.0.59"
|
|
termcolor = "1.2.0"
|
|
termize = "0.2"
|
|
tracing = "0.1"
|
|
# tidy-alphabetical-end
|
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
|
version = "0.61.0"
|
|
features = [
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_System_Threading",
|
|
]
|