Struct wasmer_cli::commands::Init

source ·
pub struct Init {
    pub lib: bool,
    pub bin: bool,
    pub empty: bool,
    pub overwrite: bool,
    pub quiet: bool,
    pub namespace: Option<String>,
    pub package_name: Option<String>,
    pub version: Option<Version>,
    pub manifest_path: Option<PathBuf>,
    pub template: Option<Template>,
    pub include: Vec<String>,
    pub out: Option<PathBuf>,
}
Expand description

CLI args for the wasmer init command

Fields§

§lib: bool

Initialize wasmer.toml for a library package

§bin: bool

Initialize wasmer.toml for a binary package

§empty: bool

Initialize an empty wasmer.toml

§overwrite: bool

Force overwriting the wasmer.toml, even if it already exists

§quiet: bool

Don’t display debug output

§namespace: Option<String>

Namespace to init with, default = current logged in user or _

§package_name: Option<String>

Package name to init with, default = Cargo.toml name or current directory name

§version: Option<Version>

Version of the initialized package

§manifest_path: Option<PathBuf>

If the manifest-path is a Cargo.toml, use that file to initialize the wasmer.toml

§template: Option<Template>

Add default dependencies for common packages

§include: Vec<String>

Include file paths into the target container filesystem

§out: Option<PathBuf>

Directory of the output file name. wasmer init will error if the target dir already contains a wasmer.toml. Also sets the package name.

Implementations§

wasmer init execution

Trait Implementations§

Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Deprecated, replaced with CommandFactory::command
Deprecated, replaced with CommandFactory::command_for_update
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type for metadata in pointers and references to Self.
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
upcast ref
upcast mut ref
upcast boxed dyn
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more