MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / tinywasm_parse

Function tinywasm_parse

crates/tinywasm/benches/tinywasm.rs:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

criterion_benchmarkFunction · 0.70

Calls 1

parse_module_bytesMethod · 0.80

Tested by

no test coverage detected