[package]
name = "wasmtime-cli"
version.workspace = true
authors.workspace = true
description = "Command-line interface for Wasmtime"
license = "Apache-2.0 WITH LLVM-exception"
documentation = "https://bytecodealliance.github.io/wasmtime/cli.html"
categories = ["wasm"]
keywords = ["webassembly", "wasm"]
repository = "https://github.com/bytecodealliance/wasmtime"
readme = "README.md"
edition.workspace = true
default-run = "wasmtime"
rust-version.workspace = true
[lints]
workspace = true
[lib]
doctest = false
[[bin]]
name = "wasmtime"
path = "src/bin/wasmtime.rs"
doc = false
[dependencies]
wasmtime = { workspace = true, features = ['std'] }
wasmtime-cache = { workspace = true, optional = true }
wasmtime-cli-flags = { workspace = true }
wasmtime-cranelift = { workspace = true, optional = true }
wasmtime-environ = { workspace = true }
wasmtime-explorer = { workspace = true, optional = true }
wasmtime-wast = { workspace = true, optional = true }
wasi-common = { workspace = true, default-features = true, features = ["exit"], optional = true }
wasmtime-wasi = { workspace = true, default-features = true, optional = true }
wasmtime-wasi-nn = { workspace = true, optional = true }
wasmtime-wasi-threads = { workspace = true, optional = true }
wasmtime-wasi-http = { workspace = true, optional = true }
clap = { workspace = true }
anyhow = { workspace = true, features = ['std'] }
target-lexicon = { workspace = true }
once_cell = { workspace = true }
listenfd = { version = "1.0.0", optional = true }
wat = { workspace = true, optional = true }
serde = { workspace = true }
serde_derive = { workspace = true }
serde_json = { workspace = true }
wasmparser = { workspace = true }
tracing = { workspace = true }
log = { workspace = true }
humantime = { workspace = true }
async-trait = { workspace = true }
bytes = { workspace = true }
cfg-if = { workspace = true }
tokio = { workspace = true, optional = true, features = [ "signal", "macros" ] }
hyper = { workspace = true, optional = true }
http = { workspace = true, optional = true }
http-body-util = { workspace = true, optional = true }
[target.'cfg(unix)'.dependencies]
rustix = { workspace = true, features = ["mm", "param", "process"] }
[dev-dependencies]
wasmtime = { workspace = true, features = ['component-model', 'async', 'default', 'winch', 'debug-builtins', 'all-arch'] }
env_logger = { workspace = true }
log = { workspace = true }
filecheck = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true, features = ["rt", "time", "macros", "rt-multi-thread"] }
wast = { workspace = true }
criterion = { workspace = true }
num_cpus = "1.13.0"
memchr = "2.4"
async-trait = { workspace = true }
wat = { workspace = true }
rayon = "1.5.0"
wasmtime-wast = { workspace = true, features = ['component-model'] }
wasmtime-component-util = { workspace = true }
component-macro-test = { path = "crates/misc/component-macro-test" }
component-test-util = { workspace = true }
bstr = "1.6.0"
libc = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
walkdir = { workspace = true }
test-programs-artifacts = { workspace = true }
bytesize = "1.3.0"
wit-component = { workspace = true }
cranelift-filetests = { workspace = true }
cranelift-codegen = { workspace = true }
cranelift-reader = { workspace = true }
toml = { workspace = true }
similar = { workspace = true }
libtest-mimic = "0.7.0"
capstone = { workspace = true }
object = { workspace = true, features = ['std'] }
[target.'cfg(windows)'.dev-dependencies]
windows-sys = { workspace = true, features = ["Win32_System_Memory"] }
[build-dependencies]
anyhow = { workspace = true, features = ['std'] }
[profile.release.build-override]
opt-level = 0
[workspace]
resolver = '2'
members = [
"cranelift",
"cranelift/isle/fuzz",
"cranelift/isle/islec",
"cranelift/serde",
"crates/bench-api",
"crates/c-api/artifact",
"crates/environ/fuzz",
"crates/test-programs",
"crates/wasi-preview1-component-adapter",
"crates/wasi-preview1-component-adapter/verify",
"examples/fib-debug/wasm",
"examples/wasi/wasm",
"examples/tokio/wasm",
"examples/component/wasm",
"examples/min-platform",
"examples/min-platform/embedding",
"fuzz",
"winch/codegen",
]
exclude = [
'docs/rust_wasi_markdown_parser',
]
[workspace.package]
version = "21.0.1"
authors = ["The Wasmtime Project Developers"]
edition = "2021"
rust-version = "1.75.0"
[workspace.lints.rust]
unused_extern_crates = 'warn'
trivial_numeric_casts = 'warn'
unstable_features = 'warn'
unused_import_braces = 'warn'
[workspace.lints.clippy]
all = 'allow'
[workspace.dependencies]
arbitrary = { version = "1.3.1" }
wasmtime-wmemcheck = { path = "crates/wmemcheck", version = "=21.0.1" }
wasmtime = { path = "crates/wasmtime", version = "21.0.1", default-features = false }
wasmtime-c-api-macros = { path = "crates/c-api-macros", version = "=21.0.1" }
wasmtime-cache = { path = "crates/cache", version = "=21.0.1" }
wasmtime-cli-flags = { path = "crates/cli-flags", version = "=21.0.1" }
wasmtime-cranelift = { path = "crates/cranelift", version = "=21.0.1" }
wasmtime-winch = { path = "crates/winch", version = "=21.0.1" }
wasmtime-environ = { path = "crates/environ", version = "=21.0.1" }
wasmtime-explorer = { path = "crates/explorer", version = "=21.0.1" }
wasmtime-fiber = { path = "crates/fiber", version = "=21.0.1" }
wasmtime-types = { path = "crates/types", version = "21.0.1" }
wasmtime-jit-debug = { path = "crates/jit-debug", version = "=21.0.1" }
wasmtime-wast = { path = "crates/wast", version = "=21.0.1" }
wasmtime-wasi = { path = "crates/wasi", version = "21.0.1", default-features = false }
wasmtime-wasi-http = { path = "crates/wasi-http", version = "=21.0.1", default-features = false }
wasmtime-wasi-nn = { path = "crates/wasi-nn", version = "21.0.1" }
wasmtime-wasi-threads = { path = "crates/wasi-threads", version = "21.0.1" }
wasmtime-component-util = { path = "crates/component-util", version = "=21.0.1" }
wasmtime-component-macro = { path = "crates/component-macro", version = "=21.0.1" }
wasmtime-asm-macros = { path = "crates/asm-macros", version = "=21.0.1" }
wasmtime-versioned-export-macros = { path = "crates/versioned-export-macros", version = "=21.0.1" }
wasmtime-slab = { path = "crates/slab", version = "=21.0.1" }
component-test-util = { path = "crates/misc/component-test-util" }
component-fuzz-util = { path = "crates/misc/component-fuzz-util" }
wiggle = { path = "crates/wiggle", version = "=21.0.1", default-features = false }
wiggle-macro = { path = "crates/wiggle/macro", version = "=21.0.1" }
wiggle-generate = { path = "crates/wiggle/generate", version = "=21.0.1" }
wasi-common = { path = "crates/wasi-common", version = "=21.0.1", default-features = false }
wasmtime-fuzzing = { path = "crates/fuzzing" }
wasmtime-jit-icache-coherence = { path = "crates/jit-icache-coherence", version = "=21.0.1" }
wasmtime-wit-bindgen = { path = "crates/wit-bindgen", version = "=21.0.1" }
test-programs-artifacts = { path = 'crates/test-programs/artifacts' }
cranelift-wasm = { path = "cranelift/wasm", version = "0.108.1" }
cranelift-codegen = { path = "cranelift/codegen", version = "0.108.1", default-features = false, features = ["std", "unwind", "trace-log"] }
cranelift-frontend = { path = "cranelift/frontend", version = "0.108.1" }
cranelift-entity = { path = "cranelift/entity", version = "0.108.1" }
cranelift-native = { path = "cranelift/native", version = "0.108.1" }
cranelift-module = { path = "cranelift/module", version = "0.108.1" }
cranelift-interpreter = { path = "cranelift/interpreter", version = "0.108.1" }
cranelift-reader = { path = "cranelift/reader", version = "0.108.1" }
cranelift-filetests = { path = "cranelift/filetests" }
cranelift-object = { path = "cranelift/object", version = "0.108.1" }
cranelift-jit = { path = "cranelift/jit", version = "0.108.1" }
cranelift-fuzzgen = { path = "cranelift/fuzzgen" }
cranelift-bforest = { path = "cranelift/bforest", version = "0.108.1" }
cranelift-control = { path = "cranelift/control", version = "0.108.1" }
cranelift = { path = "cranelift/umbrella", version = "0.108.1" }
winch-codegen = { path = "winch/codegen", version = "=0.19.1" }
wasi-preview1-component-adapter = { path = "crates/wasi-preview1-component-adapter" }
byte-array-literals = { path = "crates/wasi-preview1-component-adapter/byte-array-literals" }
regalloc2 = "0.9.3"
target-lexicon = "0.12.13"
cap-std = "3.0.0"
cap-rand = { version = "3.0.0", features = ["small_rng"] }
cap-fs-ext = "3.0.0"
cap-net-ext = "3.0.0"
cap-time-ext = "3.0.0"
cap-tempfile = "3.0.0"
fs-set-times = "0.20.1"
system-interface = { version = "0.27.1", features = ["cap_std_impls"] }
io-lifetimes = { version = "2.0.3", default-features = false }
io-extras = "0.18.1"
rustix = "0.38.31"
wit-bindgen = { version = "0.22.0", default-features = false }
wasmparser = { version = "0.207.0", default-features = false }
wat = "1.207.0"
wast = "207.0.0"
wasmprinter = "0.207.0"
wasm-encoder = "0.207.0"
wasm-smith = "0.207.0"
wasm-mutate = "0.207.0"
wit-parser = "0.207.0"
wit-component = "0.207.0"
cc = "1.0"
object = { version = "0.33", default-features = false, features = ['read_core', 'elf'] }
gimli = { version = "0.28.0", default-features = false, features = ['read'] }
addr2line = { version = "0.21.0", default-features = false }
anyhow = { version = "1.0.22", default-features = false }
windows-sys = "0.52.0"
env_logger = "0.10"
log = { version = "0.4.8", default-features = false }
clap = { version = "4.3.12", default-features = false, features = ["std", "derive"] }
hashbrown = { version = "0.14", default-features = false }
capstone = "0.12.0"
once_cell = { version = "1.12.0", default-features = false }
smallvec = { version = "1.6.1", features = ["union"] }
tracing = "0.1.26"
bitflags = "2.0"
thiserror = "1.0.43"
async-trait = "0.1.71"
heck = "0.4"
similar = "2.1.0"
toml = "0.8.10"
mach2 = "0.4.2"
memfd = "0.6.2"
memoffset = "0.9.0"
psm = "0.1.11"
proptest = "1.0.0"
rand = { version = "0.8.3", features = ["small_rng"] }
sptr = "0.3.2"
serde = { version = "1.0.188", default-features = false, features = ['alloc'] }
serde_derive = "1.0.188"
serde_json = "1.0.80"
glob = "0.3.0"
libfuzzer-sys = "0.4.0"
walkdir = "2.3.3"
cfg-if = "1.0"
tempfile = "3.1.0"
filecheck = "0.5.0"
libc = { version = "0.2.112", default-features = true }
file-per-thread-logger = "0.2.0"
tokio = { version = "1.26.0", features = [ "rt", "time" ] }
hyper = "1.0.1"
http = "1.0.0"
http-body = "1.0.0"
http-body-util = "0.1.0"
bytes = "1.4"
futures = { version = "0.3.27", default-features = false }
indexmap = { version = "2.0.0", default-features = false }
pretty_env_logger = "0.5.0"
syn = "2.0.25"
test-log = { version = "0.2", default-features = false, features = ["trace"] }
tracing-subscriber = { version = "0.3.1", default-features = false, features = ['fmt', 'env-filter', 'ansi', 'tracing-log'] }
url = "2.3.1"
humantime = "2.0.0"
postcard = { version = "1.0.8", default-features = false, features = ['alloc'] }
criterion = { version = "0.5.0", default-features = false, features = ["html_reports", "rayon"] }
rustc-hash = "1.1.0"
[features]
default = [
"run",
"compile",
"explore",
"serve",
"wast",
"config",
"wasi-nn",
"wasi-threads",
"wasi-http",
"wat",
"parallel-compilation",
"pooling-allocator",
"cache",
"logging",
"demangle",
"cranelift",
"profiling",
"coredump",
"addr2line",
"debug-builtins",
"component-model",
"threads",
"gc",
"clap/default",
"old-cli",
]
all-arch = ["wasmtime/all-arch"]
winch = ["wasmtime/winch"]
wmemcheck = ["wasmtime/wmemcheck"]
disable-logging = ["log/max_level_off", "tracing/max_level_off"]
wasi-nn = ["dep:wasmtime-wasi-nn"]
wasi-threads = ["dep:wasmtime-wasi-threads", "threads"]
wasi-http = ["component-model", "dep:wasmtime-wasi-http", "dep:tokio", "dep:hyper"]
pooling-allocator = ["wasmtime/pooling-allocator", "wasmtime-cli-flags/pooling-allocator"]
component-model = [
"wasmtime/component-model",
"wasmtime-wast?/component-model",
"wasmtime-cli-flags/component-model"
]
wat = ["dep:wat", "wasmtime/wat"]
cache = ["dep:wasmtime-cache", "wasmtime-cli-flags/cache"]
parallel-compilation = ["wasmtime-cli-flags/parallel-compilation"]
logging = ["wasmtime-cli-flags/logging"]
demangle = ["wasmtime/demangle"]
cranelift = ["wasmtime-cli-flags/cranelift", "dep:wasmtime-cranelift"]
profiling = ["wasmtime/profiling"]
coredump = ["wasmtime-cli-flags/coredump"]
addr2line = ["wasmtime/addr2line"]
debug-builtins = ["wasmtime/debug-builtins"]
threads = ["wasmtime-cli-flags/threads"]
gc = ["wasmtime-cli-flags/gc"]
old-cli = []
serve = ["wasi-http", "component-model", "dep:http-body-util", "dep:http"]
explore = ["dep:wasmtime-explorer"]
wast = ["dep:wasmtime-wast"]
config = ["cache"]
compile = ["cranelift"]
run = ["dep:wasmtime-wasi", "wasmtime/runtime", "dep:listenfd", "dep:wasi-common"]
[[test]]
name = "host_segfault"
harness = false
[[test]]
name = "disas"
harness = false
[[example]]
name = "tokio"
required-features = ["wasi-common/tokio"]
[[bench]]
name = "instantiation"
harness = false
[[bench]]
name = "thread_eager_init"
harness = false
[[bench]]
name = "trap"
harness = false
[[bench]]
name = "call"
harness = false
[[bench]]
name = "wasi"
harness = false
[profile.release.package.wasi-preview1-component-adapter]
opt-level = 's'
strip = 'debuginfo'
[profile.dev.package.wasi-preview1-component-adapter]
incremental = false
opt-level = 's'
debug-assertions = false
overflow-checks = false
[profile.dev.package.wit-bindgen]
incremental = false
debug-assertions = false
overflow-checks = false
opt-level = 's'
[profile.fastest-runtime]
inherits = "release"
codegen-units = 1
lto = true