pub struct Build {Show 16 fields
pub crate_path: PathBuf,
pub crate_data: CrateData,
pub scope: Option<String>,
pub disable_dts: bool,
pub weak_refs: bool,
pub reference_types: bool,
pub target: Target,
pub no_pack: bool,
pub no_opt: bool,
pub profile: BuildProfile,
pub mode: InstallMode,
pub out_dir: PathBuf,
pub out_name: Option<String>,
pub bindgen: Option<Status>,
pub cache: Cache,
pub extra_options: Vec<String>,
}Expand description
Everything required to configure and run the wasm-pack build command.
Fieldsยง
ยงcrate_path: PathBufยงcrate_data: CrateDataยงscope: Option<String>ยงdisable_dts: boolยงweak_refs: boolยงreference_types: boolยงtarget: Targetยงno_pack: boolยงno_opt: boolยงprofile: BuildProfileยงmode: InstallModeยงout_dir: PathBufยงout_name: Option<String>ยงbindgen: Option<Status>ยงcache: Cacheยงextra_options: Vec<String>Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
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