#wasm-module #analysis #resolution #javascript #deno #byte #typescript

wasm_dep_analyzer

Wasm module dependency analysis for module resolution

3 releases (breaking)

0.2.0 Nov 22, 2024
0.1.0 Feb 5, 2024
0.0.1 Feb 1, 2024

#153 in WebAssembly

Download history 5/week @ 2024-09-21 3/week @ 2024-09-28 65/week @ 2024-10-26 2/week @ 2024-11-02 51/week @ 2024-11-09 1356/week @ 2024-11-16 1799/week @ 2024-11-23 1695/week @ 2024-11-30

4,901 downloads per month
Used in 34 crates (2 directly)

MIT license

23KB
678 lines

wasm_dep_analyzer

An extremely lightweight Wasm module parser used in Deno to get the dependencies of a Wasm module from its bytes for the purpose of ECMAScript module resolution and TypeScript type checking.

let deps = WasmDeps::parse(&wasm_module_bytes, ParseOptions::default())?;

eprintln!("{:#?}", deps.imports);
eprintln!("{:#?}", deps.exports);

Dependencies

~270–760KB
~18K SLoC