pub struct SdkManifest {
pub version: String,
pub target_archs: Vec<String>,
pub components: Vec<SdkComponent>,
pub total_size: u64,
}Expand description
Describes the contents and metadata of an SDK package.
The manifest must contain at least one component and one target architecture to be considered valid.
Fields§
§version: StringSDK version string (semver).
target_archs: Vec<String>Target architectures this SDK supports (e.g. “x86_64-veridian”).
components: Vec<SdkComponent>Components included in this SDK package.
total_size: u64Total size of all included files in bytes.
Implementations§
Source§impl SdkManifest
impl SdkManifest
Sourcepub fn add_component(&mut self, component: SdkComponent)
pub fn add_component(&mut self, component: SdkComponent)
Add a component to the manifest if not already present.
Sourcepub fn add_target_arch(&mut self, arch: &str)
pub fn add_target_arch(&mut self, arch: &str)
Add a target architecture to the manifest if not already present.
Sourcepub fn has_component(&self, component: SdkComponent) -> bool
pub fn has_component(&self, component: SdkComponent) -> bool
Check whether the manifest includes the given component.
Sourcepub fn validate(&self) -> KernelResult<()>
pub fn validate(&self) -> KernelResult<()>
Validate that the manifest has at least one component and one target.
Trait Implementations§
Source§impl Clone for SdkManifest
impl Clone for SdkManifest
Source§fn clone(&self) -> SdkManifest
fn clone(&self) -> SdkManifest
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 SdkManifest
impl RefUnwindSafe for SdkManifest
impl Send for SdkManifest
impl Sync for SdkManifest
impl Unpin for SdkManifest
impl UnwindSafe for SdkManifest
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)