Crates.io | freertos-std |
lib.rs | freertos-std |
version | 0.0.1 |
source | src |
created_at | 2023-07-18 15:41:32.470435 |
updated_at | 2023-07-31 15:01:02.281909 |
description | A Clone of the Rust Standard Library for FreeRTOS |
homepage | |
repository | https://github.com/sheref-sidarous/freertos-std |
max_upload_size | |
id | 919557 |
size | 4,520,009 |
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
freertos-std
dependendcy as the std
library in Cargo.tomlstd = {path = "../freertos-std", features = ["panic_immediate_abort"], package = "freertos-std"}
Where path refers to where freertos-std
were checked out
[lib]
crate-type = ["staticlib"]
restricted_std
feature in the top of your root lib.rs
#![feature(restricted_std)]
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