pub struct Build {
pub crate_path: PathBuf,
pub crate_data: CrateData,
pub scope: Option<String>,
pub disable_dts: bool,
pub target: Target,
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
target: Target
profile: BuildProfile
mode: InstallMode
out_dir: PathBuf
out_name: Option<String>
bindgen: Option<Status>
cache: Cache
extra_options: Vec<String>
Implementations
sourceimpl Build
impl Build
sourcepub fn try_from_opts(build_opts: BuildOptions) -> Result<Self, Error>
pub fn try_from_opts(build_opts: BuildOptions) -> Result<Self, Error>
Construct a build command from the given options.
Auto Trait Implementations
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more