Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime compilation and execution

Runtime code generation (JIT compilation) using ras, with optional sandboxing for secure execution.

Re-exports§

pub use compiler::RuntimeCompiler;
pub use executor::execute_jit_function;
pub use macro_helpers::compile_lir_internal;
pub use sandbox::Sandbox;
pub use sandbox::SandboxConfig;

Modules§

c_abi_dynamic
Dynamic extern "C" calls with a runtime-known i64 argument count.
compiler
Runtime compiler
executor
JIT function execution
macro_helpers
Helper functions for the lir! macro
sandbox
Sandbox for executing JIT-compiled code with resource constraints.

Structs§

ExecutableMemory
Executable memory for JIT-compiled code
RasRuntime
Runtime compiler: MIR to executable memory
RuntimeResult
Runtime compilation result

Functions§

compile_to_runtime
Compile MIR module to executable memory using runtime compilation