Struct wasmtime_environ::Tunables [−][src]
pub struct Tunables {
pub static_memory_bound: u32,
pub static_memory_offset_guard_size: u64,
pub dynamic_memory_offset_guard_size: u64,
pub generate_native_debuginfo: bool,
pub parse_wasm_debuginfo: bool,
pub interruptable: bool,
}Tunable parameters for WebAssembly compilation.
Fields
static_memory_bound: u32For static heaps, the size in wasm pages of the heap protected by bounds checking.
static_memory_offset_guard_size: u64The size in bytes of the offset guard for static heaps.
dynamic_memory_offset_guard_size: u64The size in bytes of the offset guard for dynamic heaps.
generate_native_debuginfo: boolWhether or not to generate native DWARF debug information.
parse_wasm_debuginfo: boolWhether or not to retain DWARF sections in compiled modules.
interruptable: boolWhether or not to enable the ability to interrupt wasm code dynamically.
More info can be found about the implementation in
crates/environ/src/cranelift.rs. Note that you can’t interrupt host
calls and interrupts are implemented through the VMInterrupts
structure, or InterruptHandle in the wasmtime crate.