forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
87 lines (72 loc) · 2.74 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[package]
name = "wasm-tools"
version = "1.0.10"
authors = ["The Wasmtime Project Developers"]
edition = "2021"
description = "CLI tools for interoperating with WebAssembly files"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://github.com/bytecodealliance/wasm-tools"
categories = ["wasm"]
keywords = ["webassembly", "wasm"]
repository = "https://github.com/bytecodealliance/wasm-tools"
readme = "README.md"
exclude = ['tests/wabt', 'tests/testsuite', 'publish.rs']
[workspace]
members = ['crates/c-api', 'fuzz', 'crates/wasm-encoder', 'crates/fuzz-stats', 'crates/wasm-mutate-stats']
[dependencies]
anyhow = "1.0"
atty = "0.2"
env_logger = "0.9"
log = "0.4"
clap = { version = "3.1.8", features = ['derive'] }
tempfile = "3.2.0"
wat = { path = "crates/wat", version = '1.0.48' }
# Dependencies of `validate`
wasmparser = { path = "crates/wasmparser", optional = true, version = '0.90.0' }
rayon = { version = "1.0", optional = true }
# Dependencies of `print`
wasmprinter = { path = "crates/wasmprinter", version = '0.2.39' }
# Dependencies of `smith`
arbitrary = { version = "1.0.0", optional = true }
serde = { version = "1", features = ['derive'], optional = true }
serde_json = { version = "1", optional = true }
wasm-smith = { path = "crates/wasm-smith", features = ["_internal_cli"], optional = true, version = '0.11.4' }
# Dependencies of `shrink`
wasm-shrink = { path = "crates/wasm-shrink", features = ["clap"], optional = true, version = '0.1.9' }
is_executable = { version = "1.0.1", optional = true }
# Dependencies of `mutate`
wasm-mutate = { path = "crates/wasm-mutate", features = ["clap"], optional = true, version = '0.2.7' }
# Dependencies of `dump`
wasmparser-dump = { path = "crates/dump", optional = true, version = '0.1.7' }
# Dependencies of `strip`
wasm-encoder = { path = "crates/wasm-encoder", optional = true, version = '0.16.0' }
# Dependencies of `compose`
wasm-compose = { path = "crates/wasm-compose", optional = true, version = '0.1.0', features = ['cli'] }
[dev-dependencies]
anyhow = "1.0"
getopts = "0.2"
serde_json = "1.0"
tempfile = "3.1"
diff = "0.1"
wasmparser-dump = { path = 'crates/dump' }
wast = { path = 'crates/wast' }
[[test]]
name = "dump"
harness = false
[[test]]
name = "roundtrip"
harness = false
[features]
# By default, all subcommands are built
default = ['shrink', 'smith', 'mutate', 'validate', 'print', 'parse', 'dump', 'objdump', 'strip', 'compose']
# Each subcommand is gated behind a feature and lists the dependencies it needs
validate = ['wasmparser', 'rayon']
print = []
parse = []
smith = ['wasm-smith', 'arbitrary', 'serde', 'serde_json']
shrink = ['wasm-shrink', 'is_executable']
mutate = ['wasm-mutate']
dump = ['wasmparser-dump']
objdump = ['wasmparser']
strip = ['wasm-encoder']
compose = ['wasm-compose']