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: RuntimeOptions,
}Expand description
The options for the wasmer create-exe subcommand
Fields§
§env: WasmerEnv§path: PathBufInput file
output: PathBufOutput file
debug_dir: Option<PathBuf>Optional directory 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”
- “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: RuntimeOptionsTrait 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
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§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 UnsafeUnpin 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