gecko-dev/third_party/rust/wasmparser
2021-05-25 17:38:20 +00:00
..
benches Bug 1706427 - Update wasmparser and cranelift. r=rhunt 2021-05-04 14:59:40 +00:00
examples
src Bug 1712634 - Update cranelift to version 0.74. r=rhunt 2021-05-25 17:38:20 +00:00
.cargo-checksum.json Bug 1712634 - Update cranelift to version 0.74. r=rhunt 2021-05-25 17:38:20 +00:00
Cargo.lock Bug 1712634 - Update cranelift to version 0.74. r=rhunt 2021-05-25 17:38:20 +00:00
Cargo.toml Bug 1712634 - Update cranelift to version 0.74. r=rhunt 2021-05-25 17:38:20 +00:00
compare-with-main.sh Bug 1706427 - Update wasmparser and cranelift. r=rhunt 2021-05-04 14:59:40 +00:00
LICENSE Bug 1712634 - Update cranelift to version 0.74. r=rhunt 2021-05-25 17:38:20 +00:00
README.md Bug 1706427 - Update wasmparser and cranelift. r=rhunt 2021-05-04 14:59:40 +00:00

The WebAssembly binary file decoder in Rust

A Bytecode Alliance project

crates.io link docs.rs docs

The decoder library provides lightweight and fast decoding/parsing of WebAssembly binary files.

The other goal is minimal memory footprint. For this reason, there is no AST or IR of WebAssembly data.

See also its sibling at https://github.com/wasdk/wasmparser

Documentation

The documentation and examples can be found at the https://docs.rs/wasmparser/

Fuzzing

To fuzz test wasmparser.rs, switch to a nightly Rust compiler and install cargo-fuzz:

cargo install cargo-fuzz

Then, from the root of the repository, run:

cargo fuzz run parse

If you want to use files as seeds for the fuzzer, add them to fuzz/corpus/parse/ and restart cargo-fuzz.