[build-dependencies.cc]
optional = true
version = "1.0"
[build-dependencies.wasmtime-versioned-export-macros]
optional = true
version = "=27.0.0"
[dependencies.addr2line]
default-features = false
optional = true
version = "0.24.1"
[dependencies.anyhow]
default-features = false
version = "1.0.22"
[dependencies.async-trait]
optional = true
version = "0.1.71"
[dependencies.bitflags]
version = "2.0"
[dependencies.bumpalo]
version = "3.11.0"
[dependencies.cfg-if]
version = "1.0"
[dependencies.encoding_rs]
optional = true
version = "0.8.31"
[dependencies.fxprof-processed-profile]
optional = true
version = "0.6.0"
[dependencies.gimli]
default-features = false
features = ["read"]
optional = true
version = "0.31.0"
[dependencies.hashbrown]
default-features = false
version = "0.14"
[dependencies.indexmap]
default-features = false
version = "2.0.0"
[dependencies.libc]
default-features = true
version = "0.2.112"
[dependencies.libm]
version = "0.2.7"
[dependencies.log]
default-features = false
version = "0.4.8"
[dependencies.object]
default-features = false
features = ["read_core", "elf"]
version = "0.36"
[dependencies.once_cell]
optional = true
version = "1.12.0"
[dependencies.paste]
version = "1.0.3"
[dependencies.postcard]
default-features = false
features = ["alloc"]
version = "1.0.8"
[dependencies.pulley-interpreter]
optional = true
version = "=27.0.0"
[dependencies.rayon]
optional = true
version = "1.0"
[dependencies.semver]
default-features = false
optional = true
version = "1.0.17"
[dependencies.serde]
default-features = false
features = ["alloc"]
version = "1.0.188"
[dependencies.serde_derive]
version = "1.0.188"
[dependencies.serde_json]
optional = true
version = "1.0.80"
[dependencies.smallvec]
features = ["union"]
optional = true
version = "1.6.1"
[dependencies.sptr]
version = "0.3.2"
[dependencies.target-lexicon]
version = "0.12.16"
[dependencies.wasm-encoder]
optional = true
version = "0.219.1"
[dependencies.wasmparser]
default-features = false
version = "0.219.1"
[dependencies.wasmtime-asm-macros]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-cache]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-component-macro]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-component-util]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-cranelift]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-environ]
version = "=27.0.0"
[dependencies.wasmtime-fiber]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-jit-debug]
features = ["gdb_jit_int", "perf_jitdump"]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-jit-icache-coherence]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-slab]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-versioned-export-macros]
version = "=27.0.0"
[dependencies.wasmtime-winch]
optional = true
version = "=27.0.0"
[dependencies.wasmtime-wmemcheck]
optional = true
version = "=27.0.0"
[dependencies.wat]
optional = true
version = "1.219.1"
[dev-dependencies.env_logger]
version = "0.11.5"
[dev-dependencies.proptest]
version = "1.0.0"
[dev-dependencies.rand]
features = ["small_rng"]
version = "0.8.3"
[dev-dependencies.tempfile]
version = "3.1.0"
[features]
addr2line = ["dep:addr2line", "dep:gimli", "std"]
all-arch = ["wasmtime-cranelift?/all-arch", "wasmtime-winch?/all-arch", "pulley"]
async = ["dep:wasmtime-fiber", "dep:async-trait", "wasmtime-component-macro?/async", "runtime", "std"]
cache = ["dep:wasmtime-cache", "std"]
call-hook = []
component-model = ["wasmtime-environ/component-model", "wasmtime-cranelift?/component-model", "wasmtime-winch?/component-model", "dep:wasmtime-component-macro", "dep:wasmtime-component-util", "dep:encoding_rs", "dep:semver"]
coredump = ["dep:wasm-encoder", "runtime", "std"]
cranelift = ["dep:wasmtime-cranelift", "std"]
debug-builtins = ["dep:wasmtime-jit-debug", "std"]
default = ["async", "cache", "gc", "gc-drc", "gc-null", "wat", "profiling", "parallel-compilation", "cranelift", "pooling-allocator", "demangle", "addr2line", "coredump", "debug-builtins", "runtime", "component-model", "threads", "std"]
demangle = ["wasmtime-environ/demangle", "std"]
gc = ["wasmtime-environ/gc", "wasmtime-cranelift?/gc"]
gc-drc = ["gc", "wasmtime-environ/gc-drc", "wasmtime-cranelift?/gc-drc"]
gc-null = ["gc", "wasmtime-environ/gc-null", "wasmtime-cranelift?/gc-null"]
incremental-cache = ["wasmtime-cranelift?/incremental-cache", "std"]
memory-protection-keys = ["pooling-allocator"]
parallel-compilation = ["dep:rayon", "std"]
pooling-allocator = ["runtime", "std"]
profiling = ["dep:fxprof-processed-profile", "dep:wasmtime-jit-debug", "dep:ittapi", "dep:rustix", "rustix/thread", "dep:serde_json", "std"]
pulley = ["dep:pulley-interpreter", "wasmtime-cranelift?/pulley"]
reexport-wasmparser = []
runtime = ["dep:cc", "dep:smallvec", "dep:mach2", "dep:memfd", "dep:wasmtime-asm-macros", "dep:wasmtime-jit-icache-coherence", "dep:wasmtime-slab", "dep:wasmtime-versioned-export-macros", "dep:windows-sys", "dep:psm", "dep:rustix", "rustix/mm", "pulley-interpreter?/interp"]
std = ["postcard/use-std", "wasmtime-component-macro?/std", "wasmtime-environ/std", "object/std", "once_cell"]
threads = ["wasmtime-cranelift?/threads", "std"]
trace-log = ["wasmtime-cranelift?/trace-log"]
winch = ["dep:wasmtime-winch", "std"]
wmemcheck = ["dep:wasmtime-wmemcheck", "wasmtime-cranelift?/wmemcheck", "wasmtime-environ/wmemcheck", "std"]
[lib]
name = "wasmtime"
path = "src/lib.rs"
[lints.clippy]
clone_on_copy = "warn"
manual_strip = "warn"
map_clone = "warn"
uninlined_format_args = "warn"
unnecessary_cast = "warn"
unnecessary_fallible_conversions = "warn"
unnecessary_mut_passed = "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-macro-rules = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(pulley_tail_calls)"]
level = "warn"
priority = 0
[package]
authors = ["The Wasmtime Project Developers"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
description = "High-level API to expose the Wasmtime runtime"
documentation = "https://docs.rs/wasmtime"
edition = "2021"
license = "Apache-2.0 WITH LLVM-exception"
name = "wasmtime"
readme = "README.md"
repository = "https://github.com/bytecodealliance/wasmtime"
rust-version = "1.80.0"
version = "27.0.0"
[package.metadata.docs.rs]
all-features = true
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dependencies.ittapi]
optional = true
version = "0.4.0"
[target.'cfg(all(target_arch = "x86_64", target_os = "macos"))'.dependencies.ittapi]
optional = true
version = "0.4.0"
[target.'cfg(all(target_arch = "x86_64", target_os = "windows"))'.dependencies.ittapi]
optional = true
version = "0.4.0"
[target.'cfg(target_arch = "s390x")'.dependencies.psm]
optional = true
version = "0.1.11"
[target.'cfg(target_os = "linux")'.dependencies.memfd]
optional = true
version = "0.6.2"
[target.'cfg(target_os = "macos")'.dependencies.mach2]
optional = true
version = "0.4.2"
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
features = ["Win32_Foundation", "Win32_System_Kernel", "Win32_System_Memory", "Win32_System_Diagnostics_Debug", "Win32_System_SystemInformation", "Win32_Storage_FileSystem", "Win32_Security"]
optional = true
version = "0.59.0"
[target."cfg(unix)".dependencies.rustix]
optional = true
version = "0.38.31"