pub struct Build {
pub crate_path: PathBuf,
pub crate_data: CrateData,
pub scope: Option<String>,
pub disable_dts: bool,
pub target: String,
pub profile: BuildProfile,
pub mode: BuildMode,
pub out_dir: PathBuf,
pub bindgen: Option<Download>,
pub cache: Cache,
pub extra_options: Vec<String>,
}
Everything required to configure and run the wasm-pack init
command.
Construct a build command from the given options.
Configures the global binary cache used for this build
Execute this Build
command.
π¬ This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
π¬ This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
π¬ This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
π¬ This is a nightly-only experimental API. (try_from
)
π¬ This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static