wasi_virt_layer-cli 0.5.11

CLI for the wasi_virt_layer crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use wasm_encoder::{ConstExpr, Instruction};

fn main() {
    let expr1 = ConstExpr::i32_const(42);

    let expr2 = ConstExpr::extended(vec![Instruction::I32Const(42)]);
    let expr3 = ConstExpr::extended(vec![Instruction::I32Const(42), Instruction::End]);

    println!("expr1: {:?}", expr1);
    println!("expr2: {:?}", expr2);
    println!("expr3: {:?}", expr3);
}