wasi_virt_layer-cli 0.7.2

CLI for the wasi_virt_layer crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::str::FromStr;
use wasi_virt_layer_cli::generator::WasmPath;

#[test]
fn test_wasm_path_parsing() {
    let s = "crates/vfs/rustc_opt.wasm";
    let p = WasmPath::from_str(s).unwrap();
    match p {
        WasmPath::Original { .. } => {}
        _ => panic!("Expected Original, got {:?}", p),
    }
}