wasmparser 0.215.0

A simple event-driven library for parsing WebAssembly binary files.
Documentation
[[bench]]
harness = false
name = "benchmark"
path = "benches/benchmark.rs"

[dependencies.ahash]
default-features = false
optional = true
version = "0.8.11"

[dependencies.bitflags]
version = "2.4.1"

[dependencies.hashbrown]
default-features = false
features = ["ahash"]
optional = true
version = "0.14.3"

[dependencies.indexmap]
default-features = false
optional = true
version = "2.0.0"

[dependencies.semver]
default-features = false
optional = true
version = "1.0.0"

[dependencies.serde]
default-features = false
features = ["alloc"]
optional = true
version = "1.0.166"

[dev-dependencies.anyhow]
version = "1.0.58"

[dev-dependencies.criterion]
default-features = false
version = "0.5.1"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.log]
version = "0.4.17"

[dev-dependencies.once_cell]
version = "1.13.0"

[dev-dependencies.rayon]
version = "1.3"

[[example]]
name = "simple"
path = "examples/simple.rs"

[features]
default = ["std", "validate", "serde"]
no-hash-maps = []
serde = ["dep:serde", "indexmap/serde", "hashbrown/serde"]
std = ["indexmap/std"]
validate = ["dep:indexmap", "dep:semver", "dep:hashbrown", "dep:ahash"]

[lib]
name = "wasmparser"
path = "src/lib.rs"

[lints.clippy]
clone_on_copy = "warn"
manual_strip = "warn"
map_clone = "warn"
unnecessary_to_owned = "warn"

[lints.clippy.all]
level = "allow"
priority = -1

[lints.rust]
unsafe_code = "deny"

[package]
authors = ["Yury Delendik <ydelendik@mozilla.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
description = """
A simple event-driven library for parsing WebAssembly binary files.
"""
edition = "2021"
exclude = ["benches/*.wasm"]
homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser"
keywords = ["parser", "WebAssembly", "wasm"]
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
name = "wasmparser"
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser"
rust-version = "1.76.0"
version = "0.215.0"

[package.metadata.docs.rs]
all-features = true

[[test]]
name = "big-module"
path = "tests/big-module.rs"