pub struct Manifest {
pub package: String,
pub bin_name: Option<String>,
pub manifest: String,
pub codec: String,
pub target: String,
pub bin: ArtifactEntry,
pub elf: ArtifactEntry,
pub text: ArtifactEntry,
pub build: BuildMetadata,
}Expand description
Serialized manifest describing the build artifacts for a guest program.
Fields§
§package: StringCargo package identity this dist bundle comes from.
bin_name: Option<String>Optional binary target name when it differs from package.
manifest: StringManifest schema version for compatibility checks.
codec: StringHost/guest codec version used to encode runtime payloads.
target: StringTarget triple used for the build.
bin: ArtifactEntryBinary image consumed by runtime and proving flows.
elf: ArtifactEntryELF image used for symbol/debug workflows.
text: ArtifactEntryText-section image used by transpiler execution.
build: BuildMetadataBuild provenance metadata captured at packaging time.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn read_from_file(path: &Path) -> Result<Manifest, ManifestError>
pub fn read_from_file(path: &Path) -> Result<Manifest, ManifestError>
Read a manifest from a TOML file.
Sourcepub fn write_to_file(&self, path: &Path) -> Result<(), ManifestError>
pub fn write_to_file(&self, path: &Path) -> Result<(), ManifestError>
Write this manifest to a TOML file.
Sourcepub fn parse(content: &str) -> Result<Manifest, ManifestError>
pub fn parse(content: &str) -> Result<Manifest, ManifestError>
Parse and validate a manifest from TOML text.
Sourcepub fn to_toml(&self) -> Result<String, ManifestError>
pub fn to_toml(&self) -> Result<String, ManifestError>
Serialize this manifest to TOML text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Manifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Manifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Manifest
impl Serialize for Manifest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.