Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/wizer/Cargo.toml
3079 views
1
[package]
2
description = "The WebAssembly Pre-Initializer"
3
documentation = "https://docs.rs/wasmtime-wizer"
4
edition.workspace = true
5
rust-version.workspace = true
6
license = "Apache-2.0 WITH LLVM-exception"
7
name = "wasmtime-wizer"
8
readme = "./README.md"
9
repository = "https://github.com/bytecodealliance/wasmtime"
10
version.workspace = true
11
authors.workspace = true
12
13
[lints]
14
workspace = true
15
16
[package.metadata.docs.rs]
17
all-features = true
18
19
[[bench]]
20
name = "regex"
21
harness = false
22
23
[[bench]]
24
name = "uap"
25
harness = false
26
27
[dependencies]
28
log = { workspace = true }
29
rayon = { workspace = true, optional = true }
30
clap = { workspace = true, optional = true }
31
wasm-encoder = { workspace = true, features = ['wasmparser'] }
32
wasmparser = { workspace = true, features = ['validate', 'features'] }
33
wasmprinter = { workspace = true, optional = true }
34
wasmtime = { workspace = true }
35
36
[dev-dependencies]
37
criterion = { workspace = true }
38
env_logger = { workspace = true }
39
wasmprinter = { workspace = true }
40
wat = { workspace = true }
41
wasmtime = { workspace = true, features = ['default', 'anyhow'] }
42
wasmtime-wasi = { workspace = true, features = ["p1"] }
43
tokio = { workspace = true, features = ['macros'] }
44
45
[features]
46
default = ["rayon"]
47
# Enables parallel snapshotting.
48
# Needs to be disabled if compiling wizer to single-threaded targets like wasm32-unknown-unknown
49
rayon = ["dep:rayon"]
50
# Enable this dependency to get messages with WAT disassemblies when certain
51
# internal panics occur.
52
wasmprinter = ['dep:wasmprinter', 'wasmtime/anyhow']
53
54
# Enables default runtime implementations based on the `wasmtime` crate.
55
wasmtime = [
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.
67
component-model = ['wasmtime/component-model']
68
69
[[test]]
70
name = "all"
71
required-features = ['wasmtime']
72
73