# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.78.0" name = "wasmtime-cli" version = "25.0.3" authors = ["The Wasmtime Project Developers"] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false default-run = "wasmtime" description = "Command-line interface for Wasmtime" documentation = "https://bytecodealliance.github.io/wasmtime/cli.html" readme = "README.md" keywords = [ "webassembly", "wasm", ] categories = ["wasm"] license = "Apache-2.0 WITH LLVM-exception" repository = "https://github.com/bytecodealliance/wasmtime" [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] opt-level = "s" debug-assertions = false overflow-checks = false incremental = false [profile.dev.package.wit-bindgen] opt-level = "s" debug-assertions = false overflow-checks = false incremental = false [profile.fastest-runtime] lto = true codegen-units = 1 inherits = "release" [profile.release.package.wasi-preview1-component-adapter] opt-level = "s" strip = "debuginfo" [profile.release.build-override] opt-level = 0 [lib] name = "wasmtime_cli" path = "src/lib.rs" doctest = false [[bin]] name = "wasmtime" path = "src/bin/wasmtime.rs" doc = false [[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 = "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 = "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 = "wasi" path = "examples/wasi/main.rs" [[example]] name = "wasi-async" path = "examples/wasi-async/main.rs" [[test]] name = "all" path = "tests/all/main.rs" [[test]] name = "custom_signal_handler" path = "tests/custom_signal_handler.rs" [[test]] name = "disas" path = "tests/disas.rs" harness = false [[test]] name = "host_segfault" path = "tests/host_segfault.rs" harness = false [[test]] name = "pcc_memory" path = "tests/pcc_memory.rs" [[test]] name = "rlimited-memory" path = "tests/rlimited-memory.rs" [[test]] name = "unload-engine" path = "tests/unload-engine.rs" [[test]] name = "wast" path = "tests/wast.rs" harness = false [[bench]] name = "call" path = "benches/call.rs" harness = false [[bench]] name = "instantiation" path = "benches/instantiation.rs" harness = false [[bench]] name = "thread_eager_init" path = "benches/thread_eager_init.rs" harness = false [[bench]] name = "trap" path = "benches/trap.rs" harness = false [[bench]] name = "wasi" path = "benches/wasi.rs" harness = false [dependencies.anyhow] version = "1.0.22" features = ["std"] default-features = false [dependencies.async-trait] version = "0.1.71" [dependencies.bytes] version = "1.4" [dependencies.cfg-if] version = "1.0" [dependencies.clap] version = "4.3.12" features = [ "std", "derive", ] default-features = false [dependencies.http] version = "1.0.0" optional = true [dependencies.http-body-util] version = "0.1.0" optional = true [dependencies.humantime] version = "2.0.0" [dependencies.hyper] version = "1.0.1" optional = true [dependencies.listenfd] version = "1.0.0" optional = true [dependencies.log] version = "0.4.8" default-features = false [dependencies.once_cell] version = "1.12.0" default-features = false [dependencies.serde] version = "1.0.188" features = ["alloc"] default-features = false [dependencies.serde_derive] version = "1.0.188" [dependencies.serde_json] version = "1.0.80" [dependencies.target-lexicon] version = "0.12.16" [dependencies.tempfile] version = "3.1.0" optional = true [dependencies.tokio] version = "1.30.0" features = [ "rt", "time", "signal", "macros", ] optional = true [dependencies.tracing] version = "0.1.26" [dependencies.wasi-common] version = "=25.0.3" features = [ "exit", "tokio", ] optional = true default-features = true [dependencies.wasmparser] version = "0.217.0" default-features = false [dependencies.wasmtime] version = "25.0.3" features = ["std"] default-features = false [dependencies.wasmtime-cache] version = "=25.0.3" optional = true [dependencies.wasmtime-cli-flags] version = "=25.0.3" [dependencies.wasmtime-cranelift] version = "=25.0.3" optional = true [dependencies.wasmtime-environ] version = "=25.0.3" [dependencies.wasmtime-explorer] version = "=25.0.3" optional = true [dependencies.wasmtime-wasi] version = "25.0.3" optional = true default-features = true [dependencies.wasmtime-wasi-http] version = "=25.0.3" optional = true default-features = false [dependencies.wasmtime-wasi-keyvalue] version = "25.0.3" optional = true [dependencies.wasmtime-wasi-nn] version = "25.0.3" optional = true [dependencies.wasmtime-wasi-runtime-config] version = "25.0.3" optional = true [dependencies.wasmtime-wasi-threads] version = "25.0.3" optional = true [dependencies.wasmtime-wast] version = "=25.0.3" optional = true [dependencies.wat] version = "1.217.0" optional = true [dev-dependencies.async-trait] version = "0.1.71" [dev-dependencies.bstr] version = "1.6.0" [dev-dependencies.bytesize] version = "1.3.0" [dev-dependencies.capstone] version = "0.12.0" [dev-dependencies.cranelift-codegen] version = "0.112.3" features = [ "std", "unwind", "disas", "trace-log", "timing", ] default-features = false [dev-dependencies.cranelift-reader] version = "0.112.3" [dev-dependencies.criterion] version = "0.5.0" features = [ "html_reports", "rayon", ] default-features = false [dev-dependencies.env_logger] version = "0.10" [dev-dependencies.filecheck] version = "0.5.0" [dev-dependencies.libc] version = "0.2.112" default-features = true [dev-dependencies.libtest-mimic] version = "0.7.0" [dev-dependencies.log] version = "0.4.8" default-features = false [dev-dependencies.memchr] version = "2.4" [dev-dependencies.num_cpus] version = "1.13.0" [dev-dependencies.object] version = "0.36" features = [ "read_core", "elf", "std", ] default-features = false [dev-dependencies.rayon] version = "1.5.0" [dev-dependencies.serde] version = "1.0.188" features = ["alloc"] default-features = false [dev-dependencies.serde_json] version = "1.0.80" [dev-dependencies.similar] version = "2.1.0" [dev-dependencies.tempfile] version = "3.1.0" [dev-dependencies.tokio] version = "1.30.0" features = [ "rt", "time", "rt", "time", "macros", "rt-multi-thread", ] [dev-dependencies.toml] version = "0.8.10" [dev-dependencies.walkdir] version = "2.3.3" [dev-dependencies.wasmtime] version = "25.0.3" features = [ "default", "winch", "all-arch", "call-hook", "memory-protection-keys", ] default-features = false [dev-dependencies.wasmtime-component-util] version = "=25.0.3" [dev-dependencies.wasmtime-wast] version = "=25.0.3" features = ["component-model"] [dev-dependencies.wast] version = "217.0.0" [dev-dependencies.wat] version = "1.217.0" [dev-dependencies.wit-component] version = "0.217.0" [build-dependencies.anyhow] version = "1.0.22" features = ["std"] default-features = false [features] addr2line = ["wasmtime/addr2line"] all-arch = ["wasmtime/all-arch"] cache = [ "dep:wasmtime-cache", "wasmtime-cli-flags/cache", ] compile = ["cranelift"] component-model = [ "wasmtime/component-model", "wasmtime-wast?/component-model", "wasmtime-cli-flags/component-model", ] config = ["cache"] coredump = ["wasmtime-cli-flags/coredump"] cranelift = [ "wasmtime-cli-flags/cranelift", "dep:wasmtime-cranelift", ] debug-builtins = ["wasmtime/debug-builtins"] default = [ "run", "compile", "explore", "serve", "wast", "config", "wasi-nn", "wasi-threads", "wasi-http", "wasi-runtime-config", "wasi-keyvalue", "wat", "parallel-compilation", "pooling-allocator", "cache", "logging", "demangle", "cranelift", "profiling", "coredump", "addr2line", "debug-builtins", "component-model", "threads", "gc", "winch", "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"] logging = ["wasmtime-cli-flags/logging"] memory-protection-keys = ["wasmtime-cli-flags/memory-protection-keys"] parallel-compilation = ["wasmtime-cli-flags/parallel-compilation"] pooling-allocator = [ "wasmtime/pooling-allocator", "wasmtime-cli-flags/pooling-allocator", ] profiling = [ "wasmtime/profiling", "wasmtime/call-hook", ] run = [ "dep:wasmtime-wasi", "wasmtime/runtime", "dep:listenfd", "dep:wasi-common", "dep:tokio", "wasmtime-cli-flags/async", ] serve = [ "wasi-http", "component-model", "dep:http-body-util", "dep:http", "wasmtime-cli-flags/async", ] threads = ["wasmtime-cli-flags/threads"] wasi-http = [ "component-model", "dep:wasmtime-wasi-http", "dep:tokio", "dep:hyper", ] wasi-keyvalue = ["dep:wasmtime-wasi-keyvalue"] wasi-nn = ["dep:wasmtime-wasi-nn"] wasi-runtime-config = ["dep:wasmtime-wasi-runtime-config"] wasi-threads = [ "dep:wasmtime-wasi-threads", "threads", ] wast = ["dep:wasmtime-wast"] wat = [ "dep:wat", "wasmtime/wat", ] winch = ["wasmtime/winch"] wmemcheck = ["wasmtime/wmemcheck"] [target."cfg(unix)".dependencies.rustix] version = "0.38.31" features = [ "mm", "param", "process", ] [target."cfg(windows)".dev-dependencies.windows-sys] version = "0.52.0" features = ["Win32_System_Memory"] [lints.clippy] clone_on_copy = "warn" manual_strip = "warn" map_clone = "warn" uninlined_format_args = "warn" unnecessary_to_owned = "warn" [lints.clippy.all] level = "allow" priority = -1 [lints.rust] trivial_numeric_casts = "warn" unstable_features = "warn" unused-lifetimes = "warn" unused_extern_crates = "warn" unused_import_braces = "warn"