Skip to main content

Module bundle

Module bundle 

Source
Expand description

Deterministic indexed container for the embedded Foundation bootstrap.

Structs§

BytecodeBundleModule
One validated module in the shared HBX0 container format.
ModuleSource

Functions§

compile_bytecode_bundle
compile_embedded_cli_bundle
Compiles the immutable CLI and code.test closure against the already bootstrapped Foundation context. The resulting bundle is installed lazily, so a test or CLI process pays only for the namespaces it actually requires.
compile_embedded_foundation_bootstrap_bundle
compile_embedded_standard_library_bundle
Compatibility name retained for embedding hosts built against the original standard-library bundle API. The embedded artifact is now Foundation-only.
compile_package_bytecode_bundle
Compiles a package against the portable core runtime. context is registered for resolving imports and macros, while only sources are emitted into the resulting HBX0 bundle. A source-owned Foundation package evaluates std.foundation first so its companion namespaces can resolve the root surface during their own compilation.
decode_bytecode_bundle
embedded_cli_sources
Returns the embedded CLI/test-support namespace closure in deterministic dependency order. Foundation namespaces are deliberately excluded because they are already supplied by the runtime’s Foundation artifact.
embedded_foundation_bootstrap_sources
embedded_standard_library_sources
Compatibility name retained for callers that previously inspected the embedded standard-library sources.
encode_bytecode_bundle
Encode modules into the deterministic, checksummed HBX0 container shared by the Rust, Truffle/native-image, and embedding runtimes.
eval_bytecode_bundle
eval_eager_bytecode_bundle_with_registries
Transactionally load a fully eager HBX0 application bundle into an embedding host’s existing namespace and protocol registries.