#import-export #resolution

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

#356 in WebAssembly

Download history 4067/week @ 2024-12-14 3289/week @ 2024-12-21 3527/week @ 2024-12-28 4901/week @ 2025-01-04 7322/week @ 2025-01-11 5818/week @ 2025-01-18 6963/week @ 2025-01-25 5921/week @ 2025-02-01 7210/week @ 2025-02-08 6792/week @ 2025-02-15 8479/week @ 2025-02-22 7161/week @ 2025-03-01 6233/week @ 2025-03-08 7248/week @ 2025-03-15 5919/week @ 2025-03-22 5561/week @ 2025-03-29

26,023 downloads per month
Used in 56 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

~255–740KB
~17K SLoC