bazelbuild / bazelbuild/rules_rust
Building the standard library from source
Open
needs-design
needs-triage
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
# 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](https://github.com/colatkinson/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.
Contributor guide
Assessment
This issue has not been assessed yet.