[−][src]Struct wasm_pack::command::build::BuildOptions
Everything required to configure and run the wasm-pack build
command.
Fields
path: Option<PathBuf>
The path to the Rust crate. If not set, searches up the path from the current directory.
scope: Option<String>
The npm scope to use in package.json, if any.
mode: InstallMode
Sets steps to be run. [possible values: no-install, normal, force]
disable_dts: bool
By default a *.d.ts file is generated for the generated JS file, but this flag will disable generating this TypeScript file.
target: Target
Sets the target environment. [possible values: bundler, nodejs, web, no-modules]
debug: bool
Deprecated. Renamed to --dev
.
dev: bool
Create a development build. Enable debug info, and disable optimizations.
release: bool
Create a release build. Enable optimizations and disable debug info.
profiling: bool
Create a profiling build. Enable optimizations and debug info.
out_dir: String
Sets the output directory with a relative path.
out_name: Option<String>
Sets the output file names. Defaults to package name.
extra_options: Vec<String>
List of extra options to pass to cargo build
Trait Implementations
impl Debug for BuildOptions
[src]
impl Default for BuildOptions
[src]
impl StructOpt for BuildOptions
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches) -> Self
[src]
fn from_args() -> Self
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Auto Trait Implementations
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnwindSafe for BuildOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,