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,
pub generate_async_helpers: bool,
pub generate_threading_helpers: bool,
}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 custom section containing the component type.
autodrop_borrows: EnabledConfigure the autodropping of borrows in exported functions.
async_: AsyncFilterSet§generate_async_helpers: boolForce generation of async helpers even if no async functions/futures are present.
generate_threading_helpers: boolGenerate helpers for threading builtins. Implies --generate-async-helpers.
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