pub struct Opts {
pub no_helpers: bool,
pub string_encoding: StringEncoding,
pub no_sig_flattening: bool,
pub no_object_file: bool,
pub rename: Vec<(String, String)>,
pub rename_world: Option<String>,
pub type_section_suffix: Option<String>,
pub autodrop_borrows: Enabled,
pub async_: AsyncFilterSet,
}Fields§
§no_helpers: boolSkip emitting component allocation helper functions
string_encoding: StringEncodingSet component string encoding
no_sig_flattening: boolSkip optional null pointer and boolean result argument signature flattening
no_object_file: boolSkip generating an object file which contains type information for the world that is being generated.
rename: Vec<(String, String)>Rename the interface K to V in the generated source code.
rename_world: Option<String>Rename the world in the generated source code and file names.
type_section_suffix: Option<String>Add the specified suffix to the name of the custome section containing the component type.
autodrop_borrows: EnabledConfigure the autodropping of borrows in exported functions.
async_: AsyncFilterSetImplementations§
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