Cargo Features

wasmparser = { version = "0.211.1", default-features = false, features = ["std", "no-hash-maps", "validate", "serde"] }
default = serde, std, validate

These default features are set whenever wasmparser is added without default-features = false somewhere in the dependency tree.

std default

A feature which enables implementations of std::error::Error as appropriate along with other convenience APIs. This additionally uses the standard library's source of randomness for seeding hash maps.

Enables std of indexmap


Tells the wasmparser crate to avoid using hash based maps and sets.

Some embedded environments cannot provide a random source which is required to properly initialize hashmap based data structures for resilience against malious actors that control their inputs.

validate default

A feature that enables validating WebAssembly files. This is enabled by default but not required if you're only parsing a file, for example, as opposed to validating all of its contents.

Enables ahash, hashbrown, indexmap, and semver

Affects wasmparser::collections

serde default

Enable Serialize/Deserialize implementations for types in wasmparser::collections

Enables serde, serde of hashbrown and indexmap