freertos-build
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
Add the following snippet to your application's build.rs:
use *;
Optional configuration:
// Use your own FreeRTOS-Kernel source tree
b.freertos_kernel;
// Override the default port (relative to FreeRTOS-Kernel/portable)
b.freertos_port;
// Use UserConfig.h
b.user_config_dir;
// Override the internal FreeRTOSConfig.h
b.freertos_config_dir;
// Select the heap allocator from FreeRTOS-Kernel/portable/MemMang
// Default: heap_4.c
b.heap;
b.use_timer_task;
b.max_task_priorities;
b.use_preemption;
b.idle_should_yield;
b.max_task_name_len;
b.queue_registry_size;
b.check_for_stack_overflow;