wasm-encoder 0.220.0

A low-level WebAssembly encoder.
Documentation
[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 }

# Enable this dependency to get a bunch of `From<wasmparser::Foo> for
# wasm_encoder::Foo` impls.
wasmparser = { optional = true, workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
tempfile = "3.2.0"
wasmparser = { path = "../wasmparser" }
wasmprinter = { workspace = true }

[features]
default = ['component-model']

# On-by-default: conditional support for emitting components in addition to
# core modules.
component-model = ['wasmparser?/component-model']