detect-wasi 1.0.0

Detect if WASI can be run
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::process::exit;

use detect_wasi::detect_wasi_runability;

fn main() {
    if detect_wasi_runability().unwrap() {
        println!("WASI is runnable!");
        exit(0);
    } else {
        println!("WASI is not runnable");
        exit(1);
    }
}