Skip to main content

Module mpk

Module mpk 

Source
Expand description

Detection of Memory Protection Keys (MPK) support on the host system.

This is the single source of truth for whether Wasmtime’s MPK implementation can be used on the current target. The runtime in the wasmtime crate consults is_supported, and examples/mpk-available.rs exposes it as a CLI exit code so CI can decide whether to set WASMTIME_TEST_FORCE_MPK=1.

Functions§

is_supported
Returns true if Wasmtime’s MPK support can be used on this host.