()
| 7 | const WASM: &[u8] = include_bytes!("../../../examples/rust/out/tinywasm.wasm"); |
| 8 | |
| 9 | fn tinywasm_parse() -> Result<Module> { |
| 10 | let parser = tinywasm_parser::Parser::new(); |
| 11 | let data = parser.parse_module_bytes(WASM)?; |
| 12 | Ok(data) |
| 13 | } |
| 14 | |
| 15 | fn tinywasm_to_twasm(module: &Module) -> Result<Vec<u8>> { |
| 16 | let twasm = module.serialize_twasm()?; |
no test coverage detected