wasm_dep_analyzer

Crates.iowasm_dep_analyzer
lib.rswasm_dep_analyzer
version0.1.0
sourcesrc
created_at2024-02-01 18:04:14.238835
updated_at2024-02-05 15:11:33.234368
descriptionWasm module dependency analysis for module resolution
homepage
repositoryhttps://github.com/denoland/wasm_dep_analyzer
max_upload_size
id1123392
size37,451
Bartek IwaƄczuk (bartlomieju)

documentation

https://docs.rs/wasm_dep_analyzer

README

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);
Commit count: 0

cargo fmt