Debian Codegraph @

crates/wast/Cargo.toml

raw
1 [package]
2 name = "wast"
3 version = "239.0.0"
4 authors = ["Alex Crichton <[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/wast"
9 homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wast"
10 documentation = "https://docs.rs/wast"
11 description = """
12 Customizable Rust parsers for the WebAssembly Text formats WAT and WAST
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 bumpalo = "3.14.0"
24 gimli = { workspace = true, optional = true }
25 leb128fmt = { workspace = true }
26 memchr = "2.4.1"
27 unicode-width = "0.2.0"
28 wasm-encoder = { workspace = true, features = ['std'] }
29
30 [dev-dependencies]
31 anyhow = { workspace = true }
32 libtest-mimic = { workspace = true }
33 rand = { workspace = true }
34 wasmparser = { path = "../wasmparser" }
35 wat = { path = "../wat" }
36
37 [features]
38 default = ['wasm-module', 'component-model']
39
40 # Includes default parsing support for `*.wat` and `*.wast` files (wasm
41 # modules). This isn't always needed though if you're parsing just an
42 # s-expression based format. If you'd like to slim down this dependency to just
43 # the lexer, parser framework, and token support, this feature can be disabled.
44 #
45 # This feature is turned on by default.
46 wasm-module = []
47
48 # Off-by-default feature to support emitting DWARF debugging information in
49 # parsed binaries pointing back to source locations in the original `*.wat`
50 # source.
51 dwarf = ["dep:gimli"]
52
53 # On-by-default this builds in support for parsing the text format of
54 # components.
55 component-model = ['wasm-module', 'wasm-encoder/component-model']
56
57 [[test]]
58 name = "parse-fail"
59 harness = false