Skip to main content

Crate rivet_macros

Crate rivet_macros 

Source
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() -> ! that rivet-rt’s boot code (_start on RISC-V, Reset on Cortex-M) calls after bss/data init, with rivet::init inserted automatically before the function body runs.
task
Declare a static async task.