4 ms·
We've been actively working on stabilizing #![no_std], as well as making cross-compilation easier. In the future, ideally, you'll just need $ cargo build -
by steveklabnik 11y ago
We've been actively working on stabilizing #![no_std], as well as making cross-compilation easier. In the future, ideally, you'll just need
$ cargo build --target thumbv7em-none-eabi
instead of
$ rustc -C opt-level=2 -Z no-landing-pads --target thumbv7em-none-eabi -g --emit obj -L libcore-thumbv7m -o runtime.o runtime.rs
or other shenanigans. You can run that Cargo command right now, but you still need to do a little bit of work first.
- antoinealb 11y agoNice! Any pointer to a documentation / wiki explaining how to use it ?
- steveklabnik 11y ago"it" being --target? https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md https://github.com/rust-lang/rfcs/blob/master/text/0131-targ... is the original RFC. Off the top of my head, I think that's it for now. Since cross compilation is getting easier in the future, I haven't invested a lot of time into writing docs now.