[package]
name = "wit-parser"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version.workspace = true
edition.workspace = true
license.workspace = true
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser"
homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser"
documentation = "https://docs.rs/wit-parser"
description = """
Tooling for parsing `*.wit` files and working with their contents.
"""
rust-version.workspace = true
[lints]
workspace = true
[dependencies]
id-arena = { workspace = true }
anyhow = { workspace = true }
indexmap = { workspace = true, features = ['std'] }
unicode-xid = "0.2.2"
log = { workspace = true }
semver = { workspace = true }
serde = { workspace = true, optional = true }
serde_derive = { workspace = true, optional = true }
wasmparser = { workspace = true, optional = true, features = ['validate', 'component-model'] }
serde_json = { workspace = true, optional = true }
wat = { workspace = true, optional = true }
[features]
default = ['serde', 'decoding']
serde = ['dep:serde', 'dep:serde_derive', 'indexmap/serde', 'serde_json']
decoding = ['dep:wasmparser']
wat = ['decoding', 'dep:wat']
[dev-dependencies]
env_logger = { workspace = true }
pretty_assertions = { workspace = true }
serde_json = { workspace = true }
wit-parser = { path = '.', features = ['serde', 'wat'] }
libtest-mimic = { workspace = true }
[[test]]
name = "all"
harness = false