pub struct BuildArgs {Show 17 fields
pub locked: bool,
pub wasm_symbols: bool,
pub wasm_name_override: Option<String>,
pub wasm_name_suffix: Option<String>,
pub wasm_opt: bool,
pub wat: bool,
pub emit_mir: bool,
pub emit_llvm_ir: bool,
pub extract_imports: bool,
pub target_dir_wasm: Option<String>,
pub twiggy_top: bool,
pub twiggy_paths: bool,
pub twiggy_monos: bool,
pub twiggy_dominators: bool,
pub target: Option<String>,
pub release: bool,
pub out_dir: Option<String>,
}
Fields§
§locked: bool
Require that the Cargo.lock in the wasm crates is up to date.
wasm_symbols: bool
Adds debug symbols in the resulting WASM binary. Adds bloat, but helps with debugging. Do not use in production.
wasm_name_override: Option<String>
Overrides the main contract output name.
wasm_name_suffix: Option<String>
Adds given suffix to all built contracts.
wasm_opt: bool
True if wasm-opt should be used.
wat: bool
Also generate a WAT file when building.
emit_mir: bool
Also emit MIR files when building.
emit_llvm_ir: bool
Also emit LL (LLVM) files when building.
extract_imports: bool
§target_dir_wasm: Option<String>
For the wasm crate, allows specifying the target directory where the Rust compiler will build the intermediary files.
Sharing the same target directory can speed up building multiple contract crates at once.
Has alias target-dir
for backwards compatibility.
twiggy_top: bool
Generate a twiggy top report after building.
twiggy_paths: bool
Generate a twiggy paths report after building.
twiggy_monos: bool
Generate a twiggy monos report after building.
twiggy_dominators: bool
Generate a twiggy dominators report after building.
target: Option<String>
Backwards compatibility with mxpy, delete when github actions are fixed.
release: bool
Backwards compatibility with mxpy, delete when github actions are fixed.
out_dir: Option<String>
Backwards compatibility with mxpy, delete when github actions are fixed.
Implementations§
Trait Implementations§
Source§impl Args for BuildArgs
impl Args for BuildArgs
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 CliArgsToRaw for BuildArgs
impl CliArgsToRaw for BuildArgs
Source§impl FromArgMatches for BuildArgs
impl FromArgMatches for BuildArgs
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
.impl Eq for BuildArgs
impl StructuralPartialEq for BuildArgs
Auto Trait Implementations§
impl Freeze for BuildArgs
impl RefUnwindSafe for BuildArgs
impl Send for BuildArgs
impl Sync for BuildArgs
impl Unpin for BuildArgs
impl UnwindSafe for BuildArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.