[package]
edition = "2021"
name = "wit-encoder"
version = "0.245.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A WIT encoder for Rust"
documentation = "https://docs.rs/wit-encoder"
readme = false
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-encoder"
[features]
default = [
"serde",
"from-parser",
]
from-parser = [
"wit-parser",
"id-arena",
]
serde = [
"dep:serde",
"semver/serde",
]
[lib]
name = "wit_encoder"
path = "src/lib.rs"
[[test]]
name = "deps"
path = "tests/deps.rs"
[[test]]
name = "empty"
path = "tests/empty.rs"
[[test]]
name = "functions"
path = "tests/functions.rs"
[[test]]
name = "import-export-overlap1"
path = "tests/import-export-overlap1.rs"
[[test]]
name = "import-export-overlap2"
path = "tests/import-export-overlap2.rs"
[[test]]
name = "include-aliases"
path = "tests/include-aliases.rs"
[[test]]
name = "include-reps"
path = "tests/include-reps.rs"
[[test]]
name = "inline-interface"
path = "tests/inline-interface.rs"
[[test]]
name = "kebab-name-include-with"
path = "tests/kebab-name-include-with.rs"
[[test]]
name = "nested-package"
path = "tests/nested-package.rs"
[[test]]
name = "parse-to-encoder"
path = "tests/parse-to-encoder.rs"
[[test]]
name = "type_defs"
path = "tests/type_defs.rs"
[[test]]
name = "use"
path = "tests/use.rs"
[[test]]
name = "world"
path = "tests/world.rs"
[dependencies.id-arena]
version = "2.3.0"
optional = true
default-features = false
[dependencies.pretty_assertions]
version = "1.3.0"
[dependencies.semver]
version = "1.0.0"
default-features = false
[dependencies.serde]
version = "1.0.166"
features = [
"alloc",
"derive",
]
optional = true
default-features = false
[dependencies.wit-parser]
version = "0.245.1"
optional = true
[dev-dependencies.anyhow]
version = "1.0.58"
default-features = false
[dev-dependencies.indoc]
version = "2.0.5"
[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)",
]