Source code
Revision control
Copy as Markdown
Other Tools
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.76.0"
name = "wasmparser"
version = "0.219.1"
authors = ["Yury Delendik <ydelendik@mozilla.com>"]
build = false
exclude = ["benches/*.wasm"]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A simple event-driven library for parsing WebAssembly binary files.
"""
readme = "README.md"
keywords = [
"parser",
"WebAssembly",
"wasm",
]
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
[package.metadata.docs.rs]
all-features = true
[lib]
name = "wasmparser"
path = "src/lib.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
[[test]]
name = "big-module"
path = "tests/big-module.rs"
[[bench]]
name = "benchmark"
path = "benches/benchmark.rs"
harness = false
[dependencies.ahash]
version = "0.8.11"
optional = true
default-features = false
[dependencies.bitflags]
version = "2.4.1"
[dependencies.hashbrown]
version = "0.14.3"
features = ["ahash"]
optional = true
default-features = false
[dependencies.indexmap]
version = "2.0.0"
optional = true
default-features = false
[dependencies.semver]
version = "1.0.0"
optional = true
default-features = false
[dependencies.serde]
version = "1.0.166"
features = ["alloc"]
optional = true
default-features = false
[dev-dependencies.anyhow]
version = "1.0.58"
[dev-dependencies.criterion]
version = "0.5.1"
default-features = false
[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"
[features]
component-model = []
default = [
"std",
"validate",
"serde",
"features",
"component-model",
]
features = []
no-hash-maps = []
serde = [
"dep:serde",
"indexmap/serde",
"hashbrown/serde",
]
std = ["indexmap/std"]
validate = [
"dep:indexmap",
"dep:semver",
"dep:hashbrown",
"dep:ahash",
]
[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"