Skip to main content

compile_package_bytecode_bundle

Function compile_package_bytecode_bundle 

Source
pub fn compile_package_bytecode_bundle(
    context: &[ModuleSource<'_>],
    sources: &[ModuleSource<'_>],
) -> Result<Vec<u8>, String>
Expand description

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.