pub struct Package {
    pub name: String,
    pub version: Version,
    pub description: String,
    pub license: Option<String>,
    pub license_file: Option<PathBuf>,
    pub readme: Option<PathBuf>,
    pub repository: Option<String>,
    pub homepage: Option<String>,
    pub wasmer_extra_flags: Option<String>,
    pub disable_command_rename: bool,
    pub rename_commands_to_raw_command_name: bool,
}
Expand description

Describes a command for a wapm module

Fields

name: Stringversion: Versiondescription: Stringlicense: Option<String>license_file: Option<PathBuf>

The location of the license file, useful for non-standard licenses

readme: Option<PathBuf>repository: Option<String>homepage: Option<String>wasmer_extra_flags: Option<String>disable_command_rename: boolrename_commands_to_raw_command_name: bool

Unlike, disable-command-rename which prevents wapm run <Module name>, this flag enables the command rename of wapm run <COMMAND_NAME> into just <COMMAND_NAME>. This is useful for programs that need to inspect their argv[0] names and when the command name matches their executable name.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.