[[bench]]
harness = false
name = "corpus"
path = "benches/corpus.rs"
[dependencies.anyhow]
version = "1.0.58"
[dependencies.arbitrary]
features = ["derive"]
version = "1.1.0"
[dependencies.clap]
features = ["derive"]
optional = true
version = "4.0.0"
[dependencies.flagset]
version = "0.4"
[dependencies.serde]
default-features = false
features = ["alloc"]
optional = true
version = "1.0.166"
[dependencies.serde_derive]
optional = true
version = "1.0.166"
[dependencies.wasm-encoder]
default-features = false
features = ["std"]
version = "0.241.2"
[dependencies.wasmparser]
default-features = false
features = ["simd", "std", "validate", "features", "simd"]
optional = true
version = "0.241.2"
[dependencies.wat]
default-features = false
optional = true
version = "1.241.2"
[dev-dependencies.criterion]
default-features = false
version = "0.5.1"
[dev-dependencies.rand]
features = ["small_rng"]
version = "0.9.1"
[dev-dependencies.wasmparser]
default-features = false
features = ["simd", "std", "validate", "features", "simd"]
version = "0.241.2"
[dev-dependencies.wasmprinter]
default-features = false
version = "0.241.2"
[dev-dependencies.wat]
default-features = false
version = "1.241.2"
[features]
_internal_cli = ["clap", "serde", "dep:wasmparser", "dep:wat"]
component-model = ["wasm-encoder/component-model"]
serde = ["dep:serde", "dep:serde_derive", "flagset/serde", "dep:wat"]
wasmparser = ["dep:wasmparser", "wasm-encoder/wasmparser"]
[lib]
name = "wasm_smith"
path = "src/lib.rs"
[lints.clippy]
allow_attributes_without_reason = "warn"
clone_on_copy = "warn"
manual_strip = "warn"
map_clone = "warn"
uninlined_format_args = "warn"
unnecessary_cast = "warn"
unnecessary_fallible_conversions = "warn"
unnecessary_mut_passed = "warn"
unnecessary_to_owned = "warn"
[lints.clippy.all]
level = "allow"
priority = -1
[lints.rust]
deprecated-safe-2024 = "warn"
keyword_idents_2024 = "warn"
missing-unsafe-on-extern = "warn"
rust-2024-guarded-string-incompatible-syntax = "warn"
rust-2024-incompatible-pat = "warn"
rust-2024-prelude-collisions = "warn"
unsafe-attr-outside-unsafe = "warn"
unsafe-op-in-unsafe-fn = "warn"
unsafe_code = "deny"
unstable_features = "warn"
unused-lifetimes = "warn"
unused-macro-rules = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(fuzzing)"]
level = "warn"
priority = 0
[package]
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["command-line-utilities", "development-tools", "development-tools::testing", "wasm"]
description = "A WebAssembly test case generator"
documentation = "https://docs.rs/wasm-smith"
edition = "2021"
exclude = ["/benches/corpus"]
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
name = "wasm-smith"
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-smith"
rust-version = "1.76.0"
version = "0.241.2"
[package.metadata.docs.rs]
all-features = true
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.libfuzzer-sys]
version = "0.4.0"
[[test]]
name = "available_imports"
path = "tests/available_imports.rs"
[[test]]
name = "component"
path = "tests/component.rs"
[[test]]
name = "core"
path = "tests/core.rs"
[[test]]
name = "exports"
path = "tests/exports.rs"
[[test]]
name = "module_shape"
path = "tests/module_shape.rs"