pub struct Cmd {
pub list: bool,
pub manifest_path: PathBuf,
pub package: Option<String>,
pub profile: String,
pub features: Option<String>,
pub all_features: bool,
pub no_default_features: bool,
pub out_dir: Option<PathBuf>,
pub print_commands_only: bool,
}Expand description
Build a contract from source
Builds all crates that are referenced by the cargo manifest (Cargo.toml) that have cdylib as their crate-type. Crates are built for the wasm32 target. Unless configured otherwise, crates are built with their default features and with their release profile.
To view the commands that will be executed, without executing them, use the –print-commands-only option.
Fields§
§list: boolList package names
manifest_path: PathBufPath to Cargo.toml
package: Option<String>Package to build
If omitted, all packages that build for crate-type cdylib are built.
profile: StringBuild with the specified profile
features: Option<String>Build with the list of features activated, space or comma separated
all_features: boolBuild with the all features activated
no_default_features: boolBuild with the default feature not activated
out_dir: Option<PathBuf>Directory to copy wasm files to
If provided, wasm files can be found in the cargo target directory, and the specified directory.
If ommitted, wasm files are written only to the cargo target directory.
print_commands_only: boolPrint commands to build without executing them
Implementations§
Trait Implementations§
source§impl Args for Cmd
impl Args for Cmd
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§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
source§impl FromArgMatches for Cmd
impl FromArgMatches for Cmd
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.