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: PathBufcrate_data: CrateDatascope: Option<String>disable_dts: booltarget: Targetprofile: BuildProfilemode: InstallModeout_dir: PathBufout_name: Option<String>bindgen: Option<Status>cache: Cacheextra_options: Vec<String>

Implementations

Construct a build command from the given options.

Configures the global binary cache used for this build

Execute this Build command.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.