Rust installed via Homebrew lacks rust-src, preventing embedded (no_std) builds #205867
Open
4 tasks done
Labels
bug
Reproducible Homebrew/homebrew-core bug
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
When installing Rust via Homebrew (brew install rust), the rust-src component is missing by default. This prevents compilation of embedded (no_std) projects, as the core and alloc libraries are unavailable for targets like thumbv7em-none-eabihf.
What happened (include all command output)?
Attempting to compile an embedded Rust project leads to:
and running
returns no libcore.rlib
What did you expect to happen?
The Homebrew Rust package could include rust-src by default.
Alternatively, brew info rust could warn users that embedded Rust requires rust-src
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: