pub struct BuildOptions<'a> {
pub build_type: Option<&'a str>,
pub platforms: Vec<String>,
pub sign_key: Option<String>,
pub output_dir: Option<PathBuf>,
pub sub_packages: Option<Vec<String>>,
pub install_deps: bool,
pub test: bool,
pub method: &'a str,
pub image: Option<&'a str>,
pub version_override: Option<&'a str>,
pub fakeroot: bool,
}Expand description
Options for building a package from a .pkg.lua definition.
Fields§
§build_type: Option<&'a str>Build type to use, such as source or pre-compiled.
platforms: Vec<String>Target platforms to build for. Use platform strings such as
linux-amd64.
sign_key: Option<String>Optional PGP key name or fingerprint used to sign the output archive.
output_dir: Option<PathBuf>Optional directory to output the built package to.
sub_packages: Option<Vec<String>>Optional sub-packages to build.
install_deps: boolWhether to install build-time dependencies before building.
test: boolWhether to run tests before building.
method: &'a strBuild backend to use. Supported values are native and docker.
image: Option<&'a str>Docker image to use when method is docker.
version_override: Option<&'a str>Optional package version override.
fakeroot: boolWhether to force root ownership (UID/GID 0) in the built archive.
Trait Implementations§
Source§impl<'a> Clone for BuildOptions<'a>
impl<'a> Clone for BuildOptions<'a>
Source§fn clone(&self) -> BuildOptions<'a>
fn clone(&self) -> BuildOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for BuildOptions<'a>
impl<'a> Debug for BuildOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for BuildOptions<'a>
impl<'a> RefUnwindSafe for BuildOptions<'a>
impl<'a> Send for BuildOptions<'a>
impl<'a> Sync for BuildOptions<'a>
impl<'a> Unpin for BuildOptions<'a>
impl<'a> UnsafeUnpin for BuildOptions<'a>
impl<'a> UnwindSafe for BuildOptions<'a>
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§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> ⓘ
Converts
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> ⓘ
Converts
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