pub struct BuildCommand {Show 14 fields
pub package_file: PathBuf,
pub type: Option<String>,
pub platform: Vec<String>,
pub sub: Option<Vec<String>>,
pub sign: Option<String>,
pub test: bool,
pub output_dir: Option<PathBuf>,
pub install_deps: bool,
pub version_override: Option<String>,
pub method: String,
pub image: Option<String>,
pub fakeroot: bool,
pub pure: bool,
pub root_package: String,
}Fields§
§package_file: PathBufPath to the package file (e.g. path/to/name.pkg.lua)
type: Option<String>The type of package to build (e.g. ‘source’, ‘pre-compiled’).
platform: Vec<String>The platform to build for (e.g. ‘linux-amd64’, ‘windows-arm64’, ‘all’, ‘current’). Can be specified multiple times.
sub: Option<Vec<String>>The sub-packages to build.
sign: Option<String>Sign the package with the given PGP key (name or fingerprint)
test: boolRun tests before building
output_dir: Option<PathBuf>Directory to output the built package to
install_deps: boolAutomatically install build-time dependencies
version_override: Option<String>Override the package version
method: StringMethod to use for building (‘native’, ‘bwrap’, or ‘docker’)
image: Option<String>Docker image to use when method is ‘docker’
fakeroot: boolForce root ownership (UID/GID 0) in the built archive
pure: boolBuild in a clean, isolated sysroot. Requires a base package (specified by –root-package) to be installed into the sysroot.
root_package: StringThe base package to install when using –pure (default: @core/base:dev).
Trait Implementations§
Source§impl Args for BuildCommand
impl Args for BuildCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for BuildCommand
impl CommandFactory for BuildCommand
Source§impl Debug for BuildCommand
impl Debug for BuildCommand
Source§impl FromArgMatches for BuildCommand
impl FromArgMatches for BuildCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for BuildCommand
impl Parser for BuildCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for BuildCommand
impl RefUnwindSafe for BuildCommand
impl Send for BuildCommand
impl Sync for BuildCommand
impl Unpin for BuildCommand
impl UnsafeUnpin for BuildCommand
impl UnwindSafe for BuildCommand
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more