Struct multiversx_sc_meta_lib::cli::BuildArgs
source · 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: boolRequire that the Cargo.lock in the wasm crates is up to date.
wasm_symbols: boolAdds 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: boolTrue if wasm-opt should be used.
wat: boolAlso generate a WAT file when building.
emit_mir: boolAlso emit MIR files when building.
emit_llvm_ir: boolAlso 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: boolGenerate a twiggy top report after building.
twiggy_paths: boolGenerate a twiggy paths report after building.
twiggy_monos: boolGenerate a twiggy monos report after building.
twiggy_dominators: boolGenerate a twiggy dominators report after building.
target: Option<String>Backwards compatibility with mxpy, delete when github actions are fixed.
release: boolBackwards 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 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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.