Struct wasmer_cli::commands::create_exe::CreateExe
source · pub struct CreateExe {
env: WasmerEnv,
path: PathBuf,
output: PathBuf,
debug_dir: Option<PathBuf>,
precompiled_atom: Vec<String>,
target_triple: Option<Triple>,
use_wasmer_release: Option<String>,
cpu_features: Vec<CpuFeature>,
libraries: Vec<String>,
cross_compile: CrossCompile,
compiler: CompilerOptions,
hash_algorithm: Option<HashAlgorithm>,
}
Expand description
The options for the wasmer create-exe
subcommand
Fields§
§env: WasmerEnv
§path: PathBuf
Input file
output: PathBuf
Output file
debug_dir: Option<PathBuf>
Optional directorey used for debugging: if present, will output the zig command for reproducing issues in a debug directory
precompiled_atom: Vec<String>
Prefix for every input file, e.g. “wat2wasm:sha256abc123” would prefix every function in the wat2wasm input object with the “sha256abc123” hash
If only a single value is given without containing a “:”, this value is used for all input files. If no value is given, the prefix is always equal to the sha256 of the input .wasm file
target_triple: Option<Triple>
Compilation Target triple
Accepted target triple values must follow the ‘target_lexicon’ crate format.
The recommended targets we try to support are:
- “x86_64-linux-gnu”
- “aarch64-linux-gnu”
- “x86_64-apple-darwin”
- “arm64-apple-darwin”
- “x86_64-windows-gnu”
use_wasmer_release: Option<String>
Can specify either a release version (such as “3.0.1”) or a URL to a tarball to use for linking. By default, create-exe will always pull the latest release tarball from GitHub, this flag can be used to override that behaviour.
cpu_features: Vec<CpuFeature>
§libraries: Vec<String>
Additional libraries to link against. This is useful for fixing linker errors that may occur on some systems.
cross_compile: CrossCompile
§compiler: CompilerOptions
§hash_algorithm: Option<HashAlgorithm>
Hashing algorithm to be used for module hash
Trait Implementations§
source§impl Args for CreateExe
impl Args for CreateExe
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 CliCommand for CreateExe
impl CliCommand for CreateExe
source§impl FromArgMatches for CreateExe
impl FromArgMatches for CreateExe
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
.source§impl Parser for CreateExe
impl Parser for CreateExe
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for CreateExe
impl RefUnwindSafe for CreateExe
impl Send for CreateExe
impl Sync for CreateExe
impl Unpin for CreateExe
impl UnwindSafe for CreateExe
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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