pub struct ContainerBuildRequest {
pub tool: String,
pub platform: ToolPlatform,
pub plan: InstallPlan,
pub src_dir: PathBuf,
pub prefix: PathBuf,
pub scratch_dir: PathBuf,
pub dep_toolchains: Vec<PathBuf>,
pub resources_dir: Option<PathBuf>,
pub env: HashMap<String, String>,
pub path_prefix: Vec<String>,
pub net: NetPolicy,
}Expand description
Everything the runtime needs to execute an
InstallPlan in an isolated container.
Fields§
§tool: StringThe tool being built (formula name; feeds error surfacing + logs).
platform: ToolPlatformTarget platform of the build (selects Seatbelt vs HCS runtime-side).
plan: InstallPlanThe parsed install plan whose steps the container executes.
src_dir: PathBufExtracted source tree the steps run in.
prefix: PathBufThe toolchain install prefix — the ONLY tree the container may populate.
scratch_dir: PathBufScratch dir (rw), conventionally <prefix>/.build.
dep_toolchains: Vec<PathBuf>Dependency toolchain prefixes (read + exec grants; bins prepended to
PATH).
resources_dir: Option<PathBuf>Pre-fetched resource/patch staging dir (<scratch>/resources), when any.
env: HashMap<String, String>Environment variables for every step (the plan’s accumulated ENV).
path_prefix: Vec<String>Extra PATH entries, highest priority first.
net: NetPolicyNetwork policy enforced on the container.
Trait Implementations§
Source§impl Clone for ContainerBuildRequest
impl Clone for ContainerBuildRequest
Source§fn clone(&self) -> ContainerBuildRequest
fn clone(&self) -> ContainerBuildRequest
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 moreAuto Trait Implementations§
impl Freeze for ContainerBuildRequest
impl RefUnwindSafe for ContainerBuildRequest
impl Send for ContainerBuildRequest
impl Sync for ContainerBuildRequest
impl Unpin for ContainerBuildRequest
impl UnsafeUnpin for ContainerBuildRequest
impl UnwindSafe for ContainerBuildRequest
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