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] |
13 | edition = "2021" |
14 | rust-version = "1.76.0" |
15 | name = "wit-parser" |
16 | version = "0.223.0" |
17 | authors = ["Alex Crichton <alex@alexcrichton.com>"] |
18 | build = false |
19 | autolib = false |
20 | autobins = false |
21 | autoexamples = false |
22 | autotests = false |
23 | autobenches = false |
24 | description = "" " |
25 | Tooling for parsing `*.wit` files and working with their contents. |
26 | " "" |
27 | homepage = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser" |
28 | documentation = "https://docs.rs/wit-parser" |
29 | readme = "README.md" |
30 | license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" |
31 | repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser" |
32 | |
33 | [lib] |
34 | name = "wit_parser" |
35 | path = "src/lib.rs" |
36 | |
37 | [[test]] |
38 | name = "all" |
39 | path = "tests/all.rs" |
40 | harness = false |
41 | |
42 | [dependencies.anyhow] |
43 | version = "1.0.58" |
44 | |
45 | [dependencies.id-arena] |
46 | version = "2" |
47 | |
48 | [dependencies.indexmap] |
49 | version = "2.7.0" |
50 | features = ["std"] |
51 | default-features = false |
52 | |
53 | [dependencies.log] |
54 | version = "0.4.17" |
55 | |
56 | [dependencies.semver] |
57 | version = "1.0.0" |
58 | default-features = false |
59 | |
60 | [dependencies.serde] |
61 | version = "1.0.166" |
62 | features = ["alloc"] |
63 | optional = true |
64 | default-features = false |
65 | |
66 | [dependencies.serde_derive] |
67 | version = "1.0.166" |
68 | optional = true |
69 | |
70 | [dependencies.serde_json] |
71 | version = "1" |
72 | optional = true |
73 | |
74 | [dependencies.unicode-xid] |
75 | version = "0.2.2" |
76 | |
77 | [dependencies.wasmparser] |
78 | version = "0.223.0" |
79 | features = [ |
80 | "std", |
81 | "simd", |
82 | "validate", |
83 | "component-model", |
84 | "features", |
85 | ] |
86 | optional = true |
87 | default-features = false |
88 | |
89 | [dependencies.wat] |
90 | version = "1.223.0" |
91 | optional = true |
92 | default-features = false |
93 | |
94 | [dev-dependencies.env_logger] |
95 | version = "0.11" |
96 | |
97 | [dev-dependencies.libtest-mimic] |
98 | version = "0.7.0" |
99 | |
100 | [dev-dependencies.pretty_assertions] |
101 | version = "1.3.0" |
102 | |
103 | [dev-dependencies.serde_json] |
104 | version = "1" |
105 | |
106 | [features] |
107 | decoding = ["dep:wasmparser"] |
108 | default = [ |
109 | "serde", |
110 | "decoding", |
111 | ] |
112 | serde = [ |
113 | "dep:serde", |
114 | "dep:serde_derive", |
115 | "indexmap/serde", |
116 | "serde_json", |
117 | ] |
118 | wat = [ |
119 | "decoding", |
120 | "dep:wat", |
121 | ] |
122 | |
123 | [lints.clippy] |
124 | clone_on_copy = "warn" |
125 | manual_strip = "warn" |
126 | map_clone = "warn" |
127 | unnecessary_to_owned = "warn" |
128 | |
129 | [lints.clippy.all] |
130 | level = "allow" |
131 | priority = -1 |
132 | |
133 | [lints.rust] |
134 | unsafe_code = "deny" |
135 |