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: String
§version: Version
§description: String
§license: 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: bool
§rename_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§
source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more