-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building the standard library from source #2907
Comments
To make this more concrete, the only thing missing is an ability to fetch the |
I have created a proof-of-concept exposing this component in lylythechosenone/rules_rust. It seems to work correctly. However, downloading |
After playing with this a bit, it seems like more components would be needed. |
@krasimirgg I think you have experience of bootstrapping a libstd with rules_rust, right? |
Goals
Build libcore, liballoc, and their dependencies from source using
rules_rust
, preferably with bzlmod.Reasoning
When compiling to bare-metal targets, as well as custom targets, one is required to recompile the standard library from source. Currently, this is not well-supported by
rules_rust
.Prior art
In bazel-rust-cross, @colatkinson implemented this using
rust_repositories
, although that rule is now deprecated.In #2068, @daivinhtran made a first attempt at this, although it was quite bulky. It also manually downloaded the rust source files.
The text was updated successfully, but these errors were encountered: