[[bench]]
harness = false
name = "call"
path = "benches/call.rs"
[[bench]]
harness = false
name = "compile"
path = "benches/compile.rs"
[[bench]]
harness = false
name = "instantiation"
path = "benches/instantiation.rs"
[[bench]]
harness = false
name = "thread_eager_init"
path = "benches/thread_eager_init.rs"
[[bench]]
harness = false
name = "trap"
path = "benches/trap.rs"
[[bench]]
harness = false
name = "wasi"
path = "benches/wasi.rs"
[[bin]]
doc = false
name = "wasmtime"
path = "src/bin/wasmtime.rs"
[build-dependencies.anyhow]
default-features = false
features = ["std"]
version = "1.0.100"
[dependencies.anyhow]
default-features = false
features = ["std"]
version = "1.0.100"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.bytes]
default-features = false
version = "1.10.1"
[dependencies.capstone]
optional = true
version = "0.13.0"
[dependencies.cfg-if]
version = "1.0"
[dependencies.clap]
default-features = false
features = ["std", "derive"]
version = "4.5.48"
[dependencies.clap_complete]
optional = true
version = "4.5.58"
[dependencies.cranelift-codegen]
default-features = false
features = ["std", "unwind", "disas"]
optional = true
version = "0.127.0"
[dependencies.futures]
default-features = false
optional = true
version = "0.3.31"
[dependencies.gimli]
default-features = false
features = ["read"]
optional = true
version = "0.32.3"
[dependencies.http]
optional = true
version = "1.3.1"
[dependencies.http-body-util]
optional = true
version = "0.1.3"
[dependencies.hyper]
optional = true
version = "1.7.0"
[dependencies.listenfd]
optional = true
version = "1.0.0"
[dependencies.log]
default-features = false
version = "0.4.28"
[dependencies.object]
default-features = false
features = ["read_core", "elf"]
optional = true
version = "0.37.3"
[dependencies.pulley-interpreter]
optional = true
version = "=40.0.0"
[dependencies.serde]
default-features = false
features = ["alloc"]
version = "1.0.228"
[dependencies.serde_derive]
version = "1.0.228"
[dependencies.serde_json]
version = "1.0.80"
[dependencies.target-lexicon]
version = "0.13.0"
[dependencies.tempfile]
optional = true
version = "3.23.0"
[dependencies.termcolor]
optional = true
version = "1.4.1"
[dependencies.tokio]
features = ["rt", "time", "signal", "macros"]
optional = true
version = "1.48.0"
[dependencies.tracing]
version = "0.1.41"
[dependencies.wasi-common]
default-features = true
features = ["exit", "tokio"]
optional = true
version = "=40.0.0"
[dependencies.wasmparser]
default-features = false
features = ["simd"]
version = "0.243.0"
[dependencies.wasmtime]
default-features = false
features = ["std"]
version = "40.0.0"
[dependencies.wasmtime-cache]
optional = true
package = "wasmtime-internal-cache"
version = "=40.0.0"
[dependencies.wasmtime-cli-flags]
version = "=40.0.0"
[dependencies.wasmtime-cranelift]
optional = true
package = "wasmtime-internal-cranelift"
version = "=40.0.0"
[dependencies.wasmtime-environ]
version = "=40.0.0"
[dependencies.wasmtime-explorer]
optional = true
package = "wasmtime-internal-explorer"
version = "=40.0.0"
[dependencies.wasmtime-unwinder]
package = "wasmtime-internal-unwinder"
version = "=40.0.0"
[dependencies.wasmtime-wasi]
default-features = true
optional = true
version = "40.0.0"
[dependencies.wasmtime-wasi-config]
optional = true
version = "40.0.0"
[dependencies.wasmtime-wasi-http]
default-features = false
optional = true
version = "40.0.0"
[dependencies.wasmtime-wasi-keyvalue]
optional = true
version = "40.0.0"
[dependencies.wasmtime-wasi-nn]
optional = true
version = "40.0.0"
[dependencies.wasmtime-wasi-threads]
optional = true
version = "40.0.0"
[dependencies.wasmtime-wasi-tls]
optional = true
version = "40.0.0"
[dependencies.wasmtime-wast]
optional = true
version = "=40.0.0"
[dependencies.wasmtime-wizer]
features = ["clap", "wasmtime"]
optional = true
version = "40.0.0"
[dependencies.wat]
optional = true
version = "1.243.0"
[dev-dependencies.async-trait]
version = "0.1.89"
[dev-dependencies.bstr]
version = "1.6.0"
[dev-dependencies.bytesize]
version = "2.0.1"
[dev-dependencies.capstone]
version = "0.13.0"
[dev-dependencies.cranelift-codegen]
default-features = false
features = ["std", "unwind", "disas", "trace-log", "timing"]
version = "0.127.0"
[dev-dependencies.cranelift-native]
version = "0.127.0"
[dev-dependencies.cranelift-reader]
version = "0.127.0"
[dev-dependencies.criterion]
default-features = false
features = ["html_reports", "rayon"]
version = "0.7.0"
[dev-dependencies.env_logger]
version = "0.11.5"
[dev-dependencies.filecheck]
version = "0.5.0"
[dev-dependencies.futures]
default-features = false
version = "0.3.31"
[dev-dependencies.libc]
default-features = true
version = "0.2.177"
[dev-dependencies.libtest-mimic]
version = "0.8.1"
[dev-dependencies.log]
default-features = false
version = "0.4.28"
[dev-dependencies.memchr]
version = "2.4"
[dev-dependencies.num_cpus]
version = "1.17.0"
[dev-dependencies.object]
default-features = false
features = ["read_core", "elf", "std"]
version = "0.37.3"
[dev-dependencies.pulley-interpreter]
features = ["disas"]
version = "=40.0.0"
[dev-dependencies.rayon]
version = "1.5.0"
[dev-dependencies.serde]
default-features = false
features = ["alloc"]
version = "1.0.228"
[dev-dependencies.serde_json]
version = "1.0.80"
[dev-dependencies.similar]
version = "2.7.0"
[dev-dependencies.tempfile]
version = "3.23.0"
[dev-dependencies.tokio]
features = ["rt", "time", "rt", "time", "macros", "rt-multi-thread"]
version = "1.48.0"
[dev-dependencies.toml]
version = "0.9.8"
[dev-dependencies.walkdir]
version = "2.5.0"
[dev-dependencies.wasm-encoder]
version = "0.243.0"
[dev-dependencies.wasmtime]
default-features = false
features = ["default", "winch", "pulley", "all-arch", "call-hook", "memory-protection-keys", "component-model-async"]
version = "40.0.0"
[dev-dependencies.wasmtime-component-util]
package = "wasmtime-internal-component-util"
version = "=40.0.0"
[dev-dependencies.wasmtime-wast]
features = ["component-model"]
version = "=40.0.0"
[dev-dependencies.wast]
version = "243.0.0"
[dev-dependencies.wat]
version = "1.243.0"
[dev-dependencies.wit-component]
version = "0.243.0"
[[example]]
name = "anyref"
path = "examples/anyref.rs"
[[example]]
name = "component"
path = "examples/component/main.rs"
[[example]]
name = "coredump"
path = "examples/coredump.rs"
[[example]]
name = "epochs"
path = "examples/epochs.rs"
[[example]]
name = "externref"
path = "examples/externref.rs"
[[example]]
name = "fast_compilation"
path = "examples/fast_compilation.rs"
[[example]]
name = "fast_execution"
path = "examples/fast_execution.rs"
[[example]]
name = "fast_instantiation"
path = "examples/fast_instantiation.rs"
[[example]]
name = "fib-debug"
path = "examples/fib-debug/main.rs"
[[example]]
name = "fuel"
path = "examples/fuel.rs"
[[example]]
name = "gcd"
path = "examples/gcd.rs"
[[example]]
name = "hello"
path = "examples/hello.rs"
[[example]]
name = "interrupt"
path = "examples/interrupt.rs"
[[example]]
name = "linking"
path = "examples/linking.rs"
[[example]]
name = "memory"
path = "examples/memory.rs"
[[example]]
name = "mpk"
path = "examples/mpk.rs"
[[example]]
name = "mpk-available"
path = "examples/mpk-available.rs"
[[example]]
name = "multi"
path = "examples/multi.rs"
[[example]]
name = "multimemory"
path = "examples/multimemory.rs"
[[example]]
name = "pre_compile"
path = "examples/pre_compile.rs"
[[example]]
name = "resource-component"
path = "examples/resource-component/main.rs"
[[example]]
name = "run_pre_compiled"
path = "examples/run_pre_compiled.rs"
[[example]]
name = "serialize"
path = "examples/serialize.rs"
[[example]]
name = "threads"
path = "examples/threads.rs"
[[example]]
name = "tokio"
path = "examples/tokio/main.rs"
required-features = ["wasi-common/tokio"]
[[example]]
name = "wasip1"
path = "examples/wasip1/main.rs"
[[example]]
name = "wasip1-async"
path = "examples/wasip1-async/main.rs"
[[example]]
name = "wasip2"
path = "examples/wasip2/main.rs"
[[example]]
name = "wasip2-async"
path = "examples/wasip2-async/main.rs"
[features]
addr2line = ["wasmtime/addr2line"]
all-arch = ["wasmtime/all-arch"]
cache = ["dep:wasmtime-cache", "wasmtime-cli-flags/cache"]
compile = ["cranelift"]
completion = ["dep:clap_complete"]
component-model = ["wasmtime/component-model", "wasmtime-wast?/component-model", "wasmtime-cli-flags/component-model", "wasmtime-wizer?/component-model"]
component-model-async = ["wasmtime-cli-flags/component-model-async", "component-model", "wasmtime-wasi?/p3", "wasmtime-wasi-http?/p3", "dep:futures"]
config = ["cache"]
coredump = ["wasmtime-cli-flags/coredump"]
cranelift = ["wasmtime-cli-flags/cranelift", "dep:wasmtime-cranelift"]
debug = ["wasmtime-cli-flags/debug", "wasmtime/debug"]
debug-builtins = ["wasmtime/debug-builtins"]
default = ["run", "compile", "explore", "serve", "wast", "config", "completion", "objdump", "wizer", "wasi-nn", "wasi-threads", "wasi-http", "wasi-config", "wasi-keyvalue", "wasi-tls", "wat", "parallel-compilation", "pooling-allocator", "cache", "logging", "demangle", "cranelift", "profiling", "coredump", "addr2line", "debug-builtins", "component-model", "component-model-async", "threads", "gc", "gc-drc", "gc-null", "stack-switching", "winch", "pulley", "debug", "clap/default", "clap/wrap_help"]
demangle = ["wasmtime/demangle"]
disable-logging = ["log/max_level_off", "tracing/max_level_off"]
explore = ["dep:wasmtime-explorer", "dep:tempfile"]
gc = ["wasmtime-cli-flags/gc", "wasmtime/gc"]
gc-drc = ["gc", "wasmtime/gc-drc", "wasmtime-cli-flags/gc-drc"]
gc-null = ["gc", "wasmtime/gc-null", "wasmtime-cli-flags/gc-null"]
logging = ["wasmtime-cli-flags/logging"]
memory-protection-keys = ["wasmtime-cli-flags/memory-protection-keys"]
objdump = ["dep:object", "dep:cranelift-codegen", "dep:capstone", "dep:termcolor", "dep:gimli", "pulley-interpreter/disas"]
parallel-compilation = ["wasmtime-cli-flags/parallel-compilation"]
pooling-allocator = ["wasmtime/pooling-allocator", "wasmtime-cli-flags/pooling-allocator"]
profile-pulley = ["wasmtime/profile-pulley"]
profiling = ["wasmtime/profiling", "wasmtime/call-hook"]
pulley = ["wasmtime-cli-flags/pulley"]
run = ["dep:wasmtime-wasi", "wasmtime/runtime", "wasmtime/wave", "dep:listenfd", "dep:wasi-common", "dep:tokio", "wasmtime-cli-flags/async"]
serve = ["wasi-http", "wasmtime-wasi-http/component-model-async", "component-model", "dep:http-body-util", "dep:http", "wasmtime-cli-flags/async"]
stack-switching = ["wasmtime/stack-switching", "wasmtime-cli-flags/stack-switching"]
threads = ["wasmtime-cli-flags/threads"]
trace-log = ["wasmtime/trace-log"]
wasi-config = ["dep:wasmtime-wasi-config"]
wasi-http = ["component-model", "dep:wasmtime-wasi-http", "dep:tokio", "dep:hyper", "wasmtime-wasi-http/default-send-request"]
wasi-keyvalue = ["dep:wasmtime-wasi-keyvalue"]
wasi-nn = ["dep:wasmtime-wasi-nn"]
wasi-threads = ["dep:wasmtime-wasi-threads", "threads"]
wasi-tls = ["dep:wasmtime-wasi-tls"]
wast = ["dep:wasmtime-wast"]
wat = ["dep:wat", "wasmtime/wat"]
winch = ["wasmtime/winch"]
wizer = ["wasmtime-wizer", "dep:wasmtime-wasi", "dep:wasi-common", "dep:tokio", "wasmtime/wave"]
wmemcheck = ["wasmtime/wmemcheck"]
[lib]
doctest = false
name = "wasmtime_cli"
path = "src/lib.rs"
[lints.clippy]
allow_attributes_without_reason = "warn"
clone_on_copy = "warn"
extra_unused_type_parameters = "warn"
from_over_into = "warn"
manual_strip = "warn"
map_clone = "warn"
multiple_bound_locations = "warn"
redundant_field_names = "warn"
uninlined_format_args = "warn"
unnecessary_cast = "warn"
unnecessary_fallible_conversions = "warn"
unnecessary_mut_passed = "warn"
unnecessary_to_owned = "warn"
useless_conversion = "warn"
[lints.clippy.all]
level = "allow"
priority = -1
[lints.rust]
trivial_numeric_casts = "warn"
unstable_features = "warn"
unused-lifetimes = "warn"
unused-macro-rules = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(pulley_tail_calls)", "cfg(pulley_assume_llvm_makes_tail_calls)", "cfg(pulley_disable_interp_simd)"]
level = "warn"
priority = 0
[package]
authors = ["The Wasmtime Project Developers"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["wasm"]
default-run = "wasmtime"
description = "Command-line interface for Wasmtime"
documentation = "https://bytecodealliance.github.io/wasmtime/cli.html"
edition = "2024"
keywords = ["webassembly", "wasm"]
license = "Apache-2.0 WITH LLVM-exception"
name = "wasmtime-cli"
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasmtime"
resolver = "2"
rust-version = "1.89.0"
version = "40.0.0"
[package.metadata.binstall]
bin-dir = "wasmtime-v{version}-{target-arch}-{target-family}/{bin}{binary-ext}"
pkg-fmt = "txz"
pkg-url = "{repo}/releases/download/v{version}/wasmtime-v{version}-{target-arch}-{target-family}{archive-suffix}"
[package.metadata.binstall.overrides.aarch64-apple-darwin]
bin-dir = "wasmtime-v{version}-{target-arch}-macos/{bin}{binary-ext}"
pkg-url = "{repo}/releases/download/v{version}/wasmtime-v{version}-{target-arch}-macos{archive-suffix}"
[package.metadata.binstall.overrides.x86_64-apple-darwin]
bin-dir = "wasmtime-v{version}-{target-arch}-macos/{bin}{binary-ext}"
pkg-url = "{repo}/releases/download/v{version}/wasmtime-v{version}-{target-arch}-macos{archive-suffix}"
[package.metadata.binstall.overrides.x86_64-pc-windows-gnu]
pkg-fmt = "zip"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[package.metadata.binstall.overrides.x86_64-unknown-linux-musl]
bin-dir = "wasmtime-v{version}-{target-arch}-musl/{bin}{binary-ext}"
pkg-url = "{repo}/releases/download/v{version}/wasmtime-v{version}-{target-arch}-musl{archive-suffix}"
[profile.dev.package.wasi-preview1-component-adapter]
debug-assertions = false
incremental = false
opt-level = "s"
overflow-checks = false
[profile.dev.package.wit-bindgen]
debug-assertions = false
incremental = false
opt-level = "s"
overflow-checks = false
[profile.fastest-runtime]
codegen-units = 1
inherits = "release"
lto = true
[profile.profiling]
debug = "line-tables-only"
inherits = "bench"
[profile.release.build-override]
opt-level = 0
[profile.release.package.wasi-preview1-component-adapter]
opt-level = "s"
strip = "debuginfo"
[target."cfg(unix)".dependencies.rustix]
features = ["mm", "process"]
version = "1.0.8"
[target."cfg(unix)".dev-dependencies.rustix]
features = ["param"]
version = "1.0.8"
[target."cfg(windows)".dev-dependencies.windows-sys]
features = ["Win32_System_Memory"]
version = "0.61.2"
[[test]]
name = "all"
path = "tests/all/main.rs"
[[test]]
name = "disable_host_trap_handlers"
path = "tests/disable_host_trap_handlers.rs"
[[test]]
harness = false
name = "disas"
path = "tests/disas.rs"
[[test]]
name = "pcc_memory"
path = "tests/pcc_memory.rs"
[[test]]
name = "rlimited-memory"
path = "tests/rlimited-memory.rs"
[[test]]
harness = false
name = "wasi"
path = "tests/wasi.rs"
[[test]]
harness = false
name = "wast"
path = "tests/wast.rs"