xref: /wasmtime-44.0.1/docs/examples-mpk.md (revision 97e0b7db)
1# Memory Protection Keys (MPK)
2
3You can also [browse this source code online][code] and clone the wasmtime
4repository to run the example locally.
5
6[code]: https://github.com/bytecodealliance/wasmtime/blob/main/examples/mpk.rs
7
8This example demonstrates using the [Memory Protection Keys](https://www.man7.org/linux/man-pages/man7/pkeys.7.html) feature on supported platforms.
9
10## Host Source
11
12<!-- langtabs-start -->
13
14```rust
15{{#include ../examples/mpk.rs}}
16```
17
18<!-- langtabs-end -->
19