pub struct PackageBuilder { /* private fields */ }
Expand description
Builder for Package
.
Implementations§
Source§impl PackageBuilder
impl PackageBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The package’s name in the form namespace/name
.
Sourcepub fn version<VALUE: Into<Version>>(&mut self, value: VALUE) -> &mut Self
pub fn version<VALUE: Into<Version>>(&mut self, value: VALUE) -> &mut Self
The package’s version number.
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A brief description of the package.
Sourcepub fn license<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn license<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A SPDX license specifier for this package.
Sourcepub fn license_file<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn license_file<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
The location of the license file, useful for non-standard licenses
Sourcepub fn readme<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn readme<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
The package’s README file.
Sourcepub fn repository<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn repository<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A URL pointing to the package’s source code.
Sourcepub fn homepage<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn homepage<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The website used as the package’s homepage.
pub fn wasmer_extra_flags<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn disable_command_rename(&mut self, value: bool) -> &mut Self
Sourcepub fn rename_commands_to_raw_command_name(&mut self, value: bool) -> &mut Self
pub fn rename_commands_to_raw_command_name(&mut self, value: bool) -> &mut Self
Unlike, disable-command-rename
which prevents wasmer run <Module name>
,
this flag enables the command rename of wasmer 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.
Sourcepub fn entrypoint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn entrypoint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the command that should be used by wasmer run
by default.
Trait Implementations§
Source§impl Clone for PackageBuilder
impl Clone for PackageBuilder
Source§fn clone(&self) -> PackageBuilder
fn clone(&self) -> PackageBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PackageBuilder
impl RefUnwindSafe for PackageBuilder
impl Send for PackageBuilder
impl Sync for PackageBuilder
impl Unpin for PackageBuilder
impl UnwindSafe for PackageBuilder
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)