A few notes on compiling embedded targets with Rust.

The rustup installer supports adding targets:

There are many embedded targets:

A bare-metal no_std “crate attribute” is defined:

With no_std:

Using inline Assembler:

Linker for bare-metal:

Raw Pointers

Cargo Build System: