bazelbuild / bazelbuild/rules_rust

Building the standard library from source

Open
#2,907 4 comments 4 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.