Skip to main content

export_program_parser

Macro export_program_parser 

Source
macro_rules! export_program_parser {
    ($ty:ident) => { ... };
    ($ty:ident with_types_in $($path_to_types_root:tt)*) => { ... };
}
Expand description

Generates #[no_mangle] functions to export the specified type as the root implementation of all generated traits.

For more information see the documentation of wit_bindgen::generate!.

struct MyType;

impl Guest for MyType {
    // ...
}

_export_program_parser!(MyType);