Struct wasmer_toml::PackageBuilder
source · 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 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