You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
error[E0463]: can't find crate for `core`
= note: the `thumbv7em-none-eabihf` target may not be installed
and running
ls $(rustc --print sysroot)/lib/rustlib/thumbv7em-none-eabihf/lib/
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
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: