Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Remove duplicate mpk-available example (#14198)

Alex Crichtoneaeecb298351
diff --git a/examples/mpk-available.rs b/examples/mpk-available.rs
deleted file mode 100644
index e486631123..0000000000
--- a/examples/mpk-available.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-//! This example checks if memory protection keys (MPK) are available on the
-//! current system using the
-//! [`PoolingAllocationConfig::are_memory_protection_keys_available`] API.
-
-use std::process::exit;
-use wasmtime::*;
-
-fn main() {
- if PoolingAllocationConfig::are_memory_protection_keys_available() {
- eprintln!("MPK is available");
- exit(0);
- } else {
- eprintln!("MPK is not available");
- exit(1);
- }
-}