Skip to content

eqrion/waside

waside

A Rust library for loading WebAssembly binaries into an AST, with support for roundtrip encoding and WAT text printing. Designed for use in the wasm-explorer web application to display a virtualized, linkable, and searchable view of the wasm text format.

Usage

// Decode a wasm binary
let bytes = std::fs::read("module.wasm")?;
let module = waside::Module::decode(&bytes)?;

// Print to WAT text
let wat = waside::print_module(&module);

// Roundtrip: encode back to binary
let encoded = module.encode()?;

License

This project is licensed under multiple licenses:

  • Apache License 2.0
  • Apache License 2.0 with LLVM Exception
  • MIT License

See the respective LICENSE files for details.

About

No description, website, or topics provided.

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Apache-2.0
LICENSE-Apache-2.0_WITH_LLVM-exception
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages