wasmtime-internal-core 47.0.3

INTERNAL: Wasmtime's core utilities and helpers with minimal dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Exit 0 if Wasmtime's MPK runtime support is available on this host,
//! 1 otherwise. This shares the detection logic with `wasmtime`'s runtime
//! `is_supported()` check via [`wasmtime_internal_core::mpk::is_supported`],
//! so CI's "should we set `WASMTIME_TEST_FORCE_MPK=1`?" decision can never
//! drift from what the runtime itself reports.

use std::process::exit;

fn main() {
    if wasmtime_internal_core::mpk::is_supported() {
        eprintln!("MPK is available");
        exit(0);
    } else {
        eprintln!("MPK is not available");
        exit(1);
    }
}