Expand description
Procedural macros for Rivet RTOS.
Provides #[rivet::task] for declaring static async tasks that run as
real compiler-generated Future state machines, stored in a
[rivet::task::TaskCell] — zero heap allocation, and no nightly
features required.
Attribute Macros§
- main
- Declare the application entry point. Expands to the
#[no_mangle] extern "C" fn rivet_main() -> !thatrivet-rt’s boot code (_starton RISC-V,Reseton Cortex-M) calls after bss/data init, withrivet::initinserted automatically before the function body runs. - task
- Declare a static async task.