pub struct WasmBuilder { /* private fields */ }
Expand description
WASM building tool.
Implementations§
Source§impl WasmBuilder
impl WasmBuilder
Sourcepub fn new_metawasm() -> Self
pub fn new_metawasm() -> Self
Create a new WasmBuilder
for metawasm.
Sourcepub fn with_meta(metadata: MetadataRepr) -> Self
pub fn with_meta(metadata: MetadataRepr) -> Self
Create a new WasmBuilder
with metadata.
Sourcepub fn exclude_features(self, features: impl Into<Vec<&'static str>>) -> Self
pub fn exclude_features(self, features: impl Into<Vec<&'static str>>) -> Self
Exclude features from the build.
Sourcepub fn with_pre_processor(self, pre_processor: Box<dyn PreProcessor>) -> Self
pub fn with_pre_processor(self, pre_processor: Box<dyn PreProcessor>) -> Self
Add pre-processor for wasm file.
Sourcepub fn with_recommended_toolchain(self) -> Self
pub fn with_recommended_toolchain(self) -> Self
Add check of recommended toolchain.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmBuilder
impl !RefUnwindSafe for WasmBuilder
impl !Send for WasmBuilder
impl !Sync for WasmBuilder
impl Unpin for WasmBuilder
impl !UnwindSafe for WasmBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more