-
Notifications
You must be signed in to change notification settings - Fork 245
/
Cargo.toml
56 lines (48 loc) · 1.83 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
[package]
name = "wit-parser"
authors = ["Alex Crichton <[email protected]>"]
version.workspace = true
edition.workspace = true
license.workspace = true
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser"
homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser"
documentation = "https://docs.rs/wit-parser"
description = """
Tooling for parsing `*.wit` files and working with their contents.
"""
rust-version.workspace = true
[lints]
workspace = true
[dependencies]
id-arena = { workspace = true }
anyhow = { workspace = true }
indexmap = { workspace = true, features = ['std'] }
unicode-xid = "0.2.2"
log = { workspace = true }
semver = { workspace = true }
serde = { workspace = true, optional = true }
serde_derive = { workspace = true, optional = true }
wasmparser = { workspace = true, optional = true, features = ['validate', 'component-model'] }
serde_json = { workspace = true, optional = true }
wat = { workspace = true, optional = true }
[features]
default = ['serde', 'decoding']
# Enables support for `derive(Serialize, Deserialize)` on many structures, such
# as `Resolve`, which can assist when encoding `Resolve` as JSON for example.
serde = ['dep:serde', 'dep:serde_derive', 'indexmap/serde', 'serde_json']
# Enables support for decoding WIT from WebAssembly. This can be done to support
# decoding a WIT package encoded as wasm automatically.
decoding = ['dep:wasmparser']
# Enables support for parsing the wasm text format in conjunction with the
# `decoding` feature.
wat = ['decoding', 'dep:wat']
[dev-dependencies]
env_logger = { workspace = true }
pretty_assertions = { workspace = true }
serde_json = { workspace = true }
wit-parser = { path = '.', features = ['serde', 'wat'] }
libtest-mimic = { workspace = true }
[[test]]
name = "all"
harness = false