-
Notifications
You must be signed in to change notification settings - Fork 261
/
Copy pathCargo.toml
59 lines (50 loc) · 1.72 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[package]
name = "wast"
version = "225.0.0"
authors = ["Alex Crichton <[email protected]>"]
edition.workspace = true
license.workspace = true
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wast"
homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wast"
documentation = "https://docs.rs/wast"
description = """
Customizable Rust parsers for the WebAssembly Text formats WAT and WAST
"""
rust-version.workspace = true
[package.metadata.docs.rs]
all-features = true
[lints]
workspace = true
[dependencies]
bumpalo = "3.14.0"
gimli = { workspace = true, optional = true }
leb128fmt = { workspace = true }
memchr = "2.4.1"
unicode-width = "0.2.0"
wasm-encoder = { workspace = true, features = ['std'] }
[dev-dependencies]
anyhow = { workspace = true }
libtest-mimic = { workspace = true }
rand = { workspace = true }
wasmparser = { path = "../wasmparser" }
wat = { path = "../wat" }
[features]
default = ['wasm-module', 'component-model']
# Includes default parsing support for `*.wat` and `*.wast` files (wasm
# modules). This isn't always needed though if you're parsing just an
# s-expression based format. If you'd like to slim down this dependency to just
# the lexer, parser framework, and token support, this feature can be disabled.
#
# This feature is turned on by default.
wasm-module = []
# Off-by-default feature to support emitting DWARF debugging information in
# parsed binaries pointing back to source locations in the original `*.wat`
# source.
dwarf = ["dep:gimli"]
# On-by-default this builds in support for parsing the text format of
# components.
component-model = ['wasm-module', 'wasm-encoder/component-model']
[[test]]
name = "parse-fail"
harness = false