Skip to content

Instantly share code, notes, and snippets.

@Geal
Created August 13, 2015 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Geal/22dd55c84a583b18ec30 to your computer and use it in GitHub Desktop.
Save Geal/22dd55c84a583b18ec30 to your computer and use it in GitHub Desktop.
Baremetal Rust
# What you need to write low level Rust code
* do not use cargo, use rustc directly to build your code
* you need to use a target.json file describing your target platform (example: https://github.com/hackndev/zinc/blob/master/thumbv6-none-eabi.json ). Pass it to rustc via --target=target.json
* you wan work without the standard library, by following those instructions: https://doc.rust-lang.org/book/no-stdlib.html
*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment