| 1 |
[package] |
| 2 |
name = "wasm-encoder" |
| 3 |
version.workspace = true |
| 4 |
authors = ["Nick Fitzgerald <[email protected]>"] |
| 5 |
edition.workspace = true |
| 6 |
license.workspace = true |
| 7 |
readme = "README.md" |
| 8 |
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder" |
| 9 |
homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder" |
| 10 |
documentation = "https://docs.rs/wasm-encoder" |
| 11 |
description = """ |
| 12 |
A low-level WebAssembly encoder. |
| 13 |
""" |
| 14 |
rust-version.workspace = true |
| 15 |
|
| 16 |
[package.metadata.docs.rs] |
| 17 |
all-features = true |
| 18 |
|
| 19 |
[lints] |
| 20 |
workspace = true |
| 21 |
|
| 22 |
[dependencies] |
| 23 |
leb128fmt.workspace = true |
| 24 |
|
| 25 |
# Enable this dependency to get a bunch of `From<wasmparser::Foo> for |
| 26 |
# wasm_encoder::Foo` impls. |
| 27 |
wasmparser = { optional = true, workspace = true, features = ["simd"] } |
| 28 |
|
| 29 |
[dev-dependencies] |
| 30 |
anyhow = { workspace = true } |
| 31 |
tempfile = "3.2.0" |
| 32 |
wasmparser = { path = "../wasmparser" } |
| 33 |
wasmprinter = { workspace = true } |
| 34 |
|
| 35 |
[features] |
| 36 |
default = ['std', 'component-model'] |
| 37 |
|
| 38 |
# A feature which enables implementations of `std::error::Error` as appropriate. |
| 39 |
std = ["wasmparser?/std"] |
| 40 |
|
| 41 |
# On-by-default: conditional support for emitting components in addition to |
| 42 |
# core modules. |
| 43 |
component-model = ['wasmparser?/component-model'] |