With the stage0 refactor the proc_macro version found in the sysroot will no longer always match the proc_macro version that proc-macros get compiled with by the rustc executable that uses this proc_macro. This will cause problems as soon as the ABI of the bridge gets changed to implement new features or change the way existing features work. To fix this, this commit changes rustc crates to depend directly on the local version of proc_macro which will also be used in the sysroot that rustc will build.
16 lines
515 B
TOML
16 lines
515 B
TOML
[package]
|
|
name = "proc_macro"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
std = { path = "../std" }
|
|
# Workaround: when documenting this crate rustdoc will try to load crate named
|
|
# `core` when resolving doc links. Without this line a different `core` will be
|
|
# loaded from sysroot causing duplicate lang items and other similar errors.
|
|
core = { path = "../core" }
|
|
rustc-literal-escaper = { version = "0.0.2", features = ["rustc-dep-of-std"] }
|
|
|
|
[features]
|
|
default = ["rustc-dep-of-std"]
|
|
rustc-dep-of-std = []
|