1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14rust-version = "1.76.0"
15name = "wit-parser"
16version = "0.223.0"
17authors = ["Alex Crichton <alex@alexcrichton.com>"]
18build = false
19autolib = false
20autobins = false
21autoexamples = false
22autotests = false
23autobenches = false
24description = """
25Tooling for parsing `*.wit` files and working with their contents.
26"""
27homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser"
28documentation = "https://docs.rs/wit-parser"
29readme = "README.md"
30license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
31repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser"
32
33[lib]
34name = "wit_parser"
35path = "src/lib.rs"
36
37[[test]]
38name = "all"
39path = "tests/all.rs"
40harness = false
41
42[dependencies.anyhow]
43version = "1.0.58"
44
45[dependencies.id-arena]
46version = "2"
47
48[dependencies.indexmap]
49version = "2.7.0"
50features = ["std"]
51default-features = false
52
53[dependencies.log]
54version = "0.4.17"
55
56[dependencies.semver]
57version = "1.0.0"
58default-features = false
59
60[dependencies.serde]
61version = "1.0.166"
62features = ["alloc"]
63optional = true
64default-features = false
65
66[dependencies.serde_derive]
67version = "1.0.166"
68optional = true
69
70[dependencies.serde_json]
71version = "1"
72optional = true
73
74[dependencies.unicode-xid]
75version = "0.2.2"
76
77[dependencies.wasmparser]
78version = "0.223.0"
79features = [
80 "std",
81 "simd",
82 "validate",
83 "component-model",
84 "features",
85]
86optional = true
87default-features = false
88
89[dependencies.wat]
90version = "1.223.0"
91optional = true
92default-features = false
93
94[dev-dependencies.env_logger]
95version = "0.11"
96
97[dev-dependencies.libtest-mimic]
98version = "0.7.0"
99
100[dev-dependencies.pretty_assertions]
101version = "1.3.0"
102
103[dev-dependencies.serde_json]
104version = "1"
105
106[features]
107decoding = ["dep:wasmparser"]
108default = [
109 "serde",
110 "decoding",
111]
112serde = [
113 "dep:serde",
114 "dep:serde_derive",
115 "indexmap/serde",
116 "serde_json",
117]
118wat = [
119 "decoding",
120 "dep:wat",
121]
122
123[lints.clippy]
124clone_on_copy = "warn"
125manual_strip = "warn"
126map_clone = "warn"
127unnecessary_to_owned = "warn"
128
129[lints.clippy.all]
130level = "allow"
131priority = -1
132
133[lints.rust]
134unsafe_code = "deny"
135
Learn Rust with the experts
Find out more