[package]
edition = "2021"
rust-version = "1.82.0"
name = "wasm-wave"
version = "0.245.1"
authors = ["lann.martin@fermyon.com"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebAssembly Value Encoding"
documentation = "https://docs.rs/wasm-wave"
readme = "README.md"
categories = [
"wasm",
"encoding",
"parser-implementations",
]
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-wave"
[features]
default = [
"std",
"wit",
]
std = []
wit = [
"dep:wit-parser",
"std",
]
[lib]
name = "wasm_wave"
path = "src/lib.rs"
[[test]]
name = "nan"
path = "tests/nan.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[dependencies.logos]
version = "0.14.2"
features = [
"export_derive",
"forbid_unsafe",
]
default-features = false
[dependencies.thiserror]
version = "2.0.12"
default-features = false
[dependencies.wit-parser]
version = "0.245.1"
optional = true
[dev-dependencies.anyhow]
version = "1.0.58"
default-features = false
[lints.clippy]
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]
level = "warn"
priority = 0
check-cfg = [
"cfg(fuzzing)",
"cfg(debug_check_try_op)",
]