Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

2.0 KB
Raw Blame
[package]
description = "The WebAssembly Pre-Initializer"
documentation = "https://docs.rs/wasmtime-wizer"
edition.workspace = true
rust-version.workspace = true
license = "Apache-2.0 WITH LLVM-exception"
name = "wasmtime-wizer"
readme = "./README.md"
repository = "https://github.com/bytecodealliance/wasmtime"
version.workspace = true
authors.workspace = true

[lints]
workspace = true

[package.metadata.docs.rs]
all-features = true

[[bench]]
name = "regex"
harness = false

[[bench]]
name = "uap"
harness = false

[dependencies]
log = { workspace = true }
rayon = { workspace = true, optional = true }
clap = { workspace = true, optional = true }
wasm-encoder = { workspace = true, features = ['wasmparser'] }
wasmparser = { workspace = true, features = ['validate', 'features'] }
wasmprinter = { workspace = true, optional = true }
wasmtime = { workspace = true }

[dev-dependencies]
criterion = { workspace = true }
env_logger = { workspace = true }
wasmprinter = { workspace = true }
wat = { workspace = true }
wasmtime = { workspace = true, features = ['default', 'anyhow'] }
wasmtime-wasi = { workspace = true, features = ["p1"] }
tokio = { workspace = true, features = ['macros'] }
test-programs-artifacts = { workspace = true }

[features]
default = ["rayon"]
# Enables parallel snapshotting.
# Needs to be disabled if compiling wizer to single-threaded targets like wasm32-unknown-unknown
rayon = ["dep:rayon"]
# Enable this dependency to get messages with WAT disassemblies when certain
# internal panics occur.
wasmprinter = ['dep:wasmprinter', 'wasmtime/anyhow']

# Enables default runtime implementations based on the `wasmtime` crate.
wasmtime = [
  'wasmtime/std',
  'wasmtime/runtime',
  'wasmtime/cranelift',
  'wasmtime/async',
  # Need wave and wit-parser features to parse init func expressions
  'wasmtime/wave',
  'wasmtime/wit-parser',
]

# Enable support for wizening components.
component-model = ['wasmtime/component-model', 'wasmtime/anyhow']

[[test]]
name = "all"
required-features = ['wasmtime']