pub struct Opts {
pub rustfmt: bool,
pub multi_module: bool,
pub unchecked: bool,
pub symbol_namespace: String,
pub standalone: bool,
}
Fields§
§rustfmt: bool
Whether or not rustfmt
is executed to format generated code.
multi_module: bool
Adds the wit 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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more