macro_rules! export_alloc {
() => { ... };
}Expand description
Export the guest alloc function the flaron host runtime requires.
Call this once at the crate root of your flare:
ⓘ
flaron_sdk::export_alloc!();This expands to a #[no_mangle] extern "C" fn alloc(size: i32) -> i32
that delegates to guest_alloc. Without it, every host function that
returns data to the guest will fail.
Most flares should use handle_request! or ws_handlers! instead -
those macros include the alloc export for you.