freertos-rust 0.2.0

Create to use FreeRTOS in rust projects. The freertos-cargo-build crate can be used to build and link FreeRTOS from source inside build.rs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;
use std::path::PathBuf;

// See: https://doc.rust-lang.org/cargo/reference/build-scripts.html
fn main() {
    println!("cargo:rerun-if-changed=build.rs");
    let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
    println!(
        "cargo:SHIM={}",
        PathBuf::from(manifest_dir)
            .join("src/freertos")
            .to_str()
            .unwrap()
    );
}