Skip to main content

Module package_bundle

Module package_bundle 

Source
Expand description

Package bundle format for distributable .shapec files

A package bundle contains pre-compiled bytecode for all modules in a Shape package, plus metadata for versioning and freshness checks.

File format: [8 bytes "SHAPEPKG"] [4 bytes format_version LE] [MessagePack payload]

Structs§

BundleMetadata
Metadata about a compiled package bundle.
BundledModule
A single compiled module within a bundle.
BundledNativeDependencyScope
Native dependency scope embedded in a .shapec bundle.
PackageBundle
A compiled package bundle containing all modules and metadata.

Functions§

verify_bundle_checksum
Verify SHA-256 checksum of raw bundle bytes. expected should be in format “sha256:hexdigest” or just the hex digest.