pub struct SandboxInfo {
pub package_name: String,
pub depends: Vec<DependencyDelta>,
pub makedepends: Vec<DependencyDelta>,
pub checkdepends: Vec<DependencyDelta>,
pub optdepends: Vec<DependencyDelta>,
}Expand description
What: Build-preflight analysis result for a package.
Inputs:
- Produced by
sandbox::analyze_pkgbuild()/sandbox::analyze_srcinfo().
Output:
- Per-category dependency deltas comparing the package’s declared dependencies against the host.
Details:
- Ported from Pacsea’s
SandboxInfo; answers “what would I need to install to build this AUR package?” before any build starts.
Fields§
§package_name: StringPackage name the analysis belongs to.
depends: Vec<DependencyDelta>Runtime dependencies (depends).
makedepends: Vec<DependencyDelta>Build-time dependencies (makedepends).
checkdepends: Vec<DependencyDelta>Test dependencies (checkdepends).
optdepends: Vec<DependencyDelta>Optional dependencies (optdepends).
Implementations§
Source§impl SandboxInfo
impl SandboxInfo
Sourcepub fn missing_packages(&self) -> Vec<&str>
pub fn missing_packages(&self) -> Vec<&str>
What: List dependency specs that are not installed on the host.
Inputs: None.
Output:
- Specs from
depends,makedepends, andcheckdependsthat are missing.
Details:
- Optional dependencies are excluded; they do not block a build.
Sourcepub fn is_ready_to_build(&self) -> bool
pub fn is_ready_to_build(&self) -> bool
What: Check whether all build-relevant dependencies are installed.
Inputs: None.
Output:
truewhen every entry independs,makedepends, andcheckdependsis installed on the host.
Details:
- Optional dependencies are excluded; version constraints are reported per-delta but do not affect this readiness check (pacman would upgrade them during install).
Trait Implementations§
Source§impl Clone for SandboxInfo
impl Clone for SandboxInfo
Source§fn clone(&self) -> SandboxInfo
fn clone(&self) -> SandboxInfo
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 Debug for SandboxInfo
impl Debug for SandboxInfo
Source§impl Default for SandboxInfo
impl Default for SandboxInfo
Source§fn default() -> SandboxInfo
fn default() -> SandboxInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SandboxInfo
impl<'de> Deserialize<'de> for SandboxInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SandboxInfo
Source§impl PartialEq for SandboxInfo
impl PartialEq for SandboxInfo
Source§impl Serialize for SandboxInfo
impl Serialize for SandboxInfo
impl StructuralPartialEq for SandboxInfo
Auto Trait Implementations§
impl Freeze for SandboxInfo
impl RefUnwindSafe for SandboxInfo
impl Send for SandboxInfo
impl Sync for SandboxInfo
impl Unpin for SandboxInfo
impl UnsafeUnpin for SandboxInfo
impl UnwindSafe for SandboxInfo
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.