pub struct BuildEnvironment {
pub build_root: String,
pub source_dir: String,
pub build_dir: String,
pub pkg_dir: String,
pub env_vars: BTreeMap<String, String>,
pub build_timeout_ms: u64,
}Expand description
Isolated build environment for compiling a port.
Fields§
§build_root: StringPath to the isolated build root (e.g., /tmp/ports-build/<name>)
source_dir: StringSource directory within the build root
build_dir: StringBuild output directory
pkg_dir: StringPackaging / staging directory
env_vars: BTreeMap<String, String>Environment variables for the build
build_timeout_ms: u64Build timeout in milliseconds (default: 300_000 = 5 minutes)
Implementations§
Source§impl BuildEnvironment
impl BuildEnvironment
Sourcepub fn setup(&self) -> Result<(), KernelError>
pub fn setup(&self) -> Result<(), KernelError>
Set up directories for the build. In a running system this would create the directory tree via the VFS; here we validate the paths and record readiness.
Trait Implementations§
Source§impl Clone for BuildEnvironment
impl Clone for BuildEnvironment
Source§fn clone(&self) -> BuildEnvironment
fn clone(&self) -> BuildEnvironment
Returns a duplicate of the value. Read more
1.0.0§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 BuildEnvironment
impl RefUnwindSafe for BuildEnvironment
impl Send for BuildEnvironment
impl Sync for BuildEnvironment
impl Unpin for BuildEnvironment
impl UnwindSafe for BuildEnvironment
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)