pub struct BuiltinPackage {
pub name: String,
pub version: String,
pub files: Vec<(String, &'static [u8])>,
}Expand description
One embedded built-in schema package: its identity plus every file
it ships, addressed relative to the package directory and sorted by
path. The raw-bytes view of the catalogue — load_builtin_schemas
is the parsed view. Consumed by the retention guard
(tests/builtin_retention.rs), which seals each shipped package’s
content hash in builtins/MANIFEST.toml: a shipped (name, version) must exist in every future binary with byte-identical
content, so a rebuild can never strand a workspace pinning it.
Fields§
§name: String§version: String§files: Vec<(String, &'static [u8])>(path-relative-to-package-dir, bytes), sorted by path.
Auto Trait Implementations§
impl Freeze for BuiltinPackage
impl RefUnwindSafe for BuiltinPackage
impl Send for BuiltinPackage
impl Sync for BuiltinPackage
impl Unpin for BuiltinPackage
impl UnsafeUnpin for BuiltinPackage
impl UnwindSafe for BuiltinPackage
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