xref: /wasmtime-44.0.1/crates/wizer/Cargo.toml (revision c3a6060b)
1[package]
2description = "The WebAssembly Pre-Initializer"
3documentation = "https://docs.rs/wasmtime-wizer"
4edition.workspace = true
5rust-version.workspace = true
6license = "Apache-2.0 WITH LLVM-exception"
7name = "wasmtime-wizer"
8readme = "./README.md"
9repository = "https://github.com/bytecodealliance/wasmtime"
10version.workspace = true
11authors.workspace = true
12
13[lints]
14workspace = true
15
16[package.metadata.docs.rs]
17all-features = true
18
19[[bench]]
20name = "regex"
21harness = false
22
23[[bench]]
24name = "uap"
25harness = false
26
27[dependencies]
28log = { workspace = true }
29rayon = { workspace = true, optional = true }
30clap = { workspace = true, optional = true }
31wasm-encoder = { workspace = true, features = ['wasmparser'] }
32wasmparser = { workspace = true, features = ['validate', 'features'] }
33wasmprinter = { workspace = true, optional = true }
34wasmtime = { workspace = true }
35
36[dev-dependencies]
37criterion = { workspace = true }
38env_logger = { workspace = true }
39wasmprinter = { workspace = true }
40wat = { workspace = true }
41wasmtime = { workspace = true, features = ['default', 'anyhow'] }
42wasmtime-wasi = { workspace = true, features = ["p1"] }
43tokio = { workspace = true, features = ['macros'] }
44
45[features]
46default = ["rayon"]
47# Enables parallel snapshotting.
48# Needs to be disabled if compiling wizer to single-threaded targets like wasm32-unknown-unknown
49rayon = ["dep:rayon"]
50# Enable this dependency to get messages with WAT disassemblies when certain
51# internal panics occur.
52wasmprinter = ['dep:wasmprinter', 'wasmtime/anyhow']
53
54# Enables default runtime implementations based on the `wasmtime` crate.
55wasmtime = [
56  'wasmtime/std',
57  'wasmtime/runtime',
58  'wasmtime/cranelift',
59  'wasmtime/cache',
60  'wasmtime/threads',
61  'wasmtime/gc',
62  'wasmtime/gc-null',
63  'wasmtime/async',
64]
65
66# Enable support for wizening components.
67component-model = ['wasmtime/component-model']
68
69[[test]]
70name = "all"
71required-features = ['wasmtime']
72