Macro hush_plugin
Source macro_rules! hush_plugin {
(
call: { $($name:literal => $func:path),* $(,)? },
call_generator: { $($gen_name:literal => $gen_func:path),* $(,)? }
) => { ... };
(
call: { $($name:literal => $func:path),* $(,)? }
) => { ... };
}
Expand description
Generate the cdylib FFI exports for a set of ops and generators.
§Syntax
ⓘhush_plugin::hush_plugin! {
call: {
"op_name" => module::function,
...
},
call_generator: {
"gen_name" => module::gen_function,
...
}
}
The call_generator section is optional.