pub struct BundleManifest {
pub schema: u32,
pub name: String,
pub cubecl_version: String,
pub created_unix_secs: Option<u64>,
pub environments: Vec<EnvironmentInfo>,
}Expand description
The manifest of an environment bundle, stored as a row of the bundle
database in BundleFormat::Sqlite and as the
metadata blob in BundleFormat::Flat.
Fields§
§schema: u32Manifest schema version.
name: StringHuman-chosen bundle name, e.g. “H100 Linux”.
cubecl_version: StringThe cubecl version the bundle was exported with. Entries are only visible to the same version, exactly like local caches.
created_unix_secs: Option<u64>Creation time as seconds since the unix epoch, informational.
environments: Vec<EnvironmentInfo>The environments the bundle was captured on, informational in v1.
Implementations§
Source§impl BundleManifest
impl BundleManifest
Sourcepub fn parse(content: &[u8]) -> Result<Self, BundleError>
pub fn parse(content: &[u8]) -> Result<Self, BundleError>
Parses and validates a serialized manifest, the JSON both formats store.
This is the guard SqliteBundle applies at open,
available to the flat format too through
EmbeddedBundle::manifest.
Sourcepub fn warn_on_version_mismatch(&self)
pub fn warn_on_version_mismatch(&self)
Warns when the bundle was built for another cubecl version.
Not an error: the bundle still installs, its entries are simply never looked up, because the cubecl version is part of every namespace. A clear warning beats silent emptiness.
Trait Implementations§
Source§impl Clone for BundleManifest
impl Clone for BundleManifest
Source§fn clone(&self) -> BundleManifest
fn clone(&self) -> BundleManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more