# 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"
name = "wasm-smith"
version = "0.205.0"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
exclude = ["/benches/corpus"]
description = "A WebAssembly test case generator"
documentation = "https://docs.rs/wasm-smith"
readme = "./README.md"
categories = [
    "command-line-utilities",
    "development-tools",
    "development-tools::testing",
    "wasm",
]
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-smith"

[[bench]]
name = "corpus"
harness = false

[dependencies.anyhow]
version = "1.0.58"

[dependencies.arbitrary]
version = "1.1.0"
features = ["derive"]

[dependencies.clap]
version = "4.0.0"
features = ["derive"]
optional = true

[dependencies.flagset]
version = "0.4"

[dependencies.indexmap]
version = "2.0.0"

[dependencies.leb128]
version = "0.2.4"

[dependencies.serde]
version = "1.0.166"
optional = true

[dependencies.serde_derive]
version = "1.0.166"
optional = true

[dependencies.wasm-encoder]
version = "0.205.0"

[dependencies.wasmparser]
version = "0.205.0"
optional = true

[dependencies.wat]
version = "1.205.0"
optional = true

[dev-dependencies.criterion]
version = "0.3.3"

[dev-dependencies.rand]
version = "0.8.4"
features = ["small_rng"]

[dev-dependencies.wasmparser]
version = "0.205.0"

[features]
_internal_cli = [
    "clap",
    "flagset/serde",
    "serde",
    "serde_derive",
    "wasmparser",
    "wat",
]
wasmparser = [
    "dep:wasmparser",
    "wasm-encoder/wasmparser",
]

[target."cfg(not(target_family = \"wasm\"))".dev-dependencies.libfuzzer-sys]
version = "0.4.0"

[lints.clippy]
all = "allow"

[lints.rust]
unsafe_code = "deny"
