This fixes issues with RustAnalyzer not finding stable_mir crate. It is also part of the long term architecture plan for these crates, since we are moving towards having stable_mir depend on rustc_smir and not the other way around. I believe this is an utility function that will come handy eventually for stable_mir users, but I'm keeping it as part of rustc_internal since it initializes the StableMir context and requires `TyCtxt`. Finally, I added the rustc_internal crate under a feature since the APIs from this module shall not be stabilized.
13 lines
385 B
TOML
13 lines
385 B
TOML
[package]
|
|
name = "stable_mir"
|
|
version = "0.1.0-preview"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
rustc_smir = { path = "../rustc_smir" }
|
|
|
|
[features]
|
|
# Provides access to APIs that expose internals of the rust compiler.
|
|
# APIs enabled by this feature are unstable. They can be removed or modified
|
|
# at any point and they are not included in the crate's semantic versioning.
|
|
rustc_internal = []
|