Add a rust-toolchain.toml for the rule-preprocessor - #288
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a crate-local Rust toolchain override for rule-preprocessor so that developers can build it with cargo without first manually installing extra Rust components. This fits the codebase because rule-preprocessor uses rustc_private / rustc_* internals and therefore requires a nightly toolchain plus the rustc-dev component.
Changes:
- Add
rule-preprocessor/rust-toolchain.tomlpinning a nightly toolchain. - Ensure
rustc-devis installed automatically viarustupwhen building fromrule-preprocessor/.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
114455f to
194aaaf
Compare
194aaaf to
c989e88
Compare
|
In my machine, |
|
What's the benefit of this PR? |
After installing the desired nightly toolchain we set the pinned nightly version, with the `rustc-dev` component as a directory override for the rule-preprocessor crate. Now, a user can just do `cargo build` on this crate.
c989e88 to
583be3c
Compare
Currently, if we try to compile the rule-preprocessor as a standalone (i.e., without
I decided to solve this and directly implement the patch on |
As this crate requires the
rustc-devcomponent, which is not bundled by default, we need to add it explicitly.Now, a user can just do
cargo buildon this crate.