[package]
name = "wasm-encoder"
version.workspace = true
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
edition.workspace = true
license.workspace = true
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder"
homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder"
documentation = "https://docs.rs/wasm-encoder"
description = """
A low-level WebAssembly encoder.
"""
rust-version.workspace = true
[package.metadata.docs.rs]
all-features = true
[lints]
workspace = true
[dependencies]
leb128 = { workspace = true }
wasmparser = { optional = true, workspace = true }
[dev-dependencies]
anyhow = { workspace = true }
tempfile = "3.2.0"
wasmparser = { path = "../wasmparser" }
wasmprinter = { workspace = true }
[features]
default = ['component-model']
component-model = ['wasmparser?/component-model']