mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 19:20:03 +00:00
Split crates and clean up structure of codebase (#294)
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
bf700f9012
commit
4b00f5f143
88 changed files with 2989 additions and 1423 deletions
13
crates/detect-wasi/src/bin/detect-wasi.rs
Normal file
13
crates/detect-wasi/src/bin/detect-wasi.rs
Normal file
|
@ -0,0 +1,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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue