freertos-build 0.5.0

Utility lib for building & using FreeRTOS in rust projects inside the build.rs.
Documentation

freertos-build

CI Crates.io Docs.rs License Downloads

As part of the freertos-next ecosystem, freertos-build provides a simple and reliable way to build FreeRTOS applications using Cargo. It integrates FreeRTOS into your Rust project through a build.rs, automatically compiling the kernel sources and applying your custom FreeRTOSConfig.h.

See also freertos README.

📦 Usage

cargo add --build freertos-build

Add the following snippet to your application's build.rs:

fn main() {
    let mut b = freertos_build::Builder::new();
    b.user_config_dir("src_c"); // Location of `UserConfig.h`
    b.compile().unwrap();
}