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
sourceimpl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more