pub struct BuildOptions {Show 13 fields
pub path: Option<PathBuf>,
pub mode: InstallMode,
pub weak_refs: bool,
pub reference_types: bool,
pub debug: bool,
pub dev: bool,
pub release: bool,
pub profiling: bool,
pub profile: Option<String>,
pub out_dir: String,
pub out_name: Option<String>,
pub no_opt: bool,
pub extra_options: Vec<String>,
}Expand description
Everything required to configure and run the build command.
Fields§
§path: Option<PathBuf>The path to the Rust crate. If not set, searches up the path from the current directory.
mode: InstallModeSets steps to be run. [possible values: no-install, normal, force]
weak_refs: boolEnable usage of the JS weak references proposal.
reference_types: boolEnable usage of WebAssembly reference types.
debug: boolDeprecated. Renamed to --dev.
dev: boolCreate a development build. Enable debug info, and disable optimizations.
release: boolCreate a release build. Enable optimizations and disable debug info.
profiling: boolCreate a profiling build. Enable optimizations and debug info.
profile: Option<String>User-defined profile with –profile flag
out_dir: StringSets the output directory with a relative path.
out_name: Option<String>Sets the output file names. Defaults to package name.
no_opt: boolOption to skip optimization with wasm-opt
extra_options: Vec<String>List of extra options to pass to cargo build
Trait Implementations§
Source§impl Args for BuildOptions
impl Args for BuildOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for BuildOptions
impl Debug for BuildOptions
Source§impl Default for BuildOptions
impl Default for BuildOptions
Source§impl FromArgMatches for BuildOptions
impl FromArgMatches for BuildOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for BuildOptions
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnwindSafe for BuildOptions
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
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>
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>
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