pub struct Manifest { /* private fields */ }Expand description
The record of one produced sysroot.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub const fn new(target: TargetTuple) -> Self
pub const fn new(target: TargetTuple) -> Self
An empty manifest for this target.
Sourcepub const fn target(&self) -> TargetTuple
pub const fn target(&self) -> TargetTuple
The target this sysroot is for.
Sourcepub fn redistributable(&self) -> bool
pub fn redistributable(&self) -> bool
Whether an artifact containing this whole sysroot can be published.
One input under a licence that says no makes the answer no, which is the only reading of a licence wall that is worth anything.
Sourcepub fn sources(&self) -> Vec<&str>
pub fn sources(&self) -> Vec<&str>
Every distinct source in the manifest, sorted.
What a person asks first when two manifests differ, and what a licence notice is generated from.
Sourcepub fn render(&self) -> String
pub fn render(&self) -> String
The manifest as text, sorted by path.
The sort is what makes two runs comparable. A directory walk returns files in whatever order the filesystem keeps them, which differs between ext4 and APFS and sometimes between two runs on one of them, and a manifest that carried that order would report a difference between two identical sysroots.