Struct wai_bindgen_gen_rust_wasm::Opts
source · pub struct Opts {
pub rustfmt: bool,
pub multi_module: bool,
pub unchecked: bool,
pub symbol_namespace: String,
pub standalone: bool,
pub force_generate_structs: bool,
}
Fields§
§rustfmt: bool
Whether or not rustfmt
is executed to format generated code.
multi_module: bool
Adds the wai module name into import binding names when enabled.
unchecked: bool
Whether or not the bindings assume interface values are always well-formed or whether checks are performed.
symbol_namespace: String
A prefix to prepend to all exported symbols. Note that this is only intended for testing because it breaks the general form of the ABI.
standalone: bool
If true, the code generation is intended for standalone crates.
Standalone mode generates bindings without a wrapping module.
For exported interfaces, an export!
macro is also generated
that can be used to export an implementation from a different
crate.
force_generate_structs: bool
Generate type definitions, even if they are never used.