wasi2ic 0.2.13

This tool converts WebAssembly System Interface (WASI) dependent Wasm files to be compatible with the Internet Computer (IC) platform.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::Parser;

#[derive(Parser, Debug)]
#[command(version, about=format!("Wasi dependency removal V{}", env!("CARGO_PKG_VERSION")), long_about = None)]
pub struct Wasm2icArgs {
    /// Quiet mode
    #[arg(long, short, default_value_t = false)]
    pub quiet: bool,

    /// Input file to process (*.wasm or *.wat).
    pub input_file: String,

    /// Output file to store the processed Wasm (*.wasm).
    #[arg(default_value_t = String::from("no_wasi.wasm"))]
    pub output_file: String,
}