mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
13 lines
267 B
Rust
13 lines
267 B
Rust
use std::process::exit;
|
|
|
|
use cargo_binstall::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);
|
|
}
|
|
}
|