This is an early alpha version of the Rust Standard Library port for FreeRTOS. So far, it has basic support of threads and sync primitives.
It is recommended to include this repo as a submodule in your workspace, this is because the FreeRTOS build system needs to include c files from it.
$ git submodule add git@github.com:sheref-sidarous/freertos-std.git
Add freertos-std
dependendcy as the std
library in Cargo.toml
std = {path = "../freertos-std", features = ["panic_immediate_abort"], package = "freertos-std"}
Where path refers to where freertos-std
were checked out
Build your app as a staticlib
[lib]
crate-type = ["staticlib"]
You will need to include the restricted_std
feature in the top of your root lib.rs
```
```
src/sys/freertos/rust_std_shim.c
from freertos-std into the build systemCheck out freertos-std-example for an example that builds and runs this library using Qemu