Skip to main content

Module hyperlight

Module hyperlight 

Source
Expand description

Hyperlight WebAssembly backend implementing the Sandbox trait.

Note: Hyperlight runs WebAssembly modules, not shell commands. The exec method expects Wasm function names, not shell commands.

Supports both .wasm (binary) and .wat (text) format files. WAT files are automatically compiled to WASM on load.

Structs§

HyperlightSandbox
Hyperlight WebAssembly sandbox

Functions§

compile_wat
Compile WAT (WebAssembly Text) to WASM binary
compile_wat_file
Compile WAT file to WASM binary
hyperlight_available
Check if Hyperlight is available on this system
is_wat_file
Check if a file is WAT format (by extension)
load_wasm_file
Load WASM from file, auto-detecting WAT format