Skip to main content

compile_core_modules

Function compile_core_modules 

Source
pub fn compile_core_modules() -> Result<BytecodeProgram>
Expand description

Compile all core stdlib modules into a single BytecodeProgram

The core modules are those in stdlib/core/ which are auto-imported and available without explicit import statements.

Uses precompiled embedded bytecode when available, falling back to source compilation. Set SHAPE_FORCE_SOURCE_STDLIB=1 to force source.

ยงReturns

A merged BytecodeProgram containing all core functions, types, and metas.