[package]
name = "wasmtime"
version.workspace = true
authors.workspace = true
description = "High-level API to expose the Wasmtime runtime"
documentation = "https://docs.rs/wasmtime"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
readme = "README.md"
edition.workspace = true
rust-version.workspace = true
[lints]
workspace = true
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "nightlydoc"]
features = ["component-model"]
[dependencies]
wasmtime-runtime = { workspace = true, optional = true }
wasmtime-environ = { workspace = true }
wasmtime-jit-debug = { workspace = true, features = [
"perf_jitdump",
], optional = true }
wasmtime-jit-icache-coherence = { workspace = true, optional = true }
wasmtime-cache = { workspace = true, optional = true }
wasmtime-fiber = { workspace = true, optional = true }
wasmtime-cranelift = { workspace = true, optional = true }
wasmtime-winch = { workspace = true, optional = true }
wasmtime-component-macro = { workspace = true, optional = true }
wasmtime-component-util = { workspace = true, optional = true }
target-lexicon = { workspace = true }
wasmparser = { workspace = true }
wasm-encoder = { workspace = true, optional = true }
anyhow = { workspace = true }
libc = "0.2"
cfg-if = { workspace = true }
log = { workspace = true }
wat = { workspace = true, optional = true }
serde = "1.0.188"
serde_derive = "1.0.188"
serde_json = { workspace = true }
bincode = "1.2.1"
indexmap = { workspace = true }
paste = "1.0.3"
once_cell = { workspace = true }
rayon = { version = "1.0", optional = true }
object = { workspace = true }
async-trait = { workspace = true, optional = true }
encoding_rs = { version = "0.8.31", optional = true }
bumpalo = "3.11.0"
fxprof-processed-profile = { version = "0.6.0", optional = true }
gimli = { workspace = true }
addr2line = { version = "0.21.0", default-features = false, optional = true }
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
workspace = true
features = ["Win32_System_Diagnostics_Debug"]
[target.'cfg(all(target_arch = "x86_64", not(target_os = "android")))'.dependencies]
ittapi = { version = "0.4.0", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
rustix = { workspace = true, features = ['thread'] }
[dev-dependencies]
tempfile = "3.0"
wasi-common = { path = "../wasi-common", default-features = true }
[features]
default = [
'async',
'cache',
'wat',
'profiling',
'parallel-compilation',
'cranelift',
'pooling-allocator',
'demangle',
'addr2line',
'coredump',
'debug-builtins',
'runtime',
'component-model',
]
cranelift = ["dep:wasmtime-cranelift"]
winch = ["dep:wasmtime-winch"]
incremental-cache = ["wasmtime-cranelift?/incremental-cache"]
profiling = [
"dep:fxprof-processed-profile",
"dep:wasmtime-jit-debug",
"dep:ittapi",
]
parallel-compilation = ["dep:rayon"]
cache = ["dep:wasmtime-cache"]
async = [
"dep:wasmtime-fiber",
"wasmtime-runtime/async",
"dep:async-trait",
"wasmtime-component-macro?/async",
"runtime",
]
pooling-allocator = ["runtime", "wasmtime-runtime/pooling-allocator"]
all-arch = ["wasmtime-cranelift?/all-arch", "wasmtime-winch?/all-arch"]
component-model = [
"wasmtime-environ/component-model",
"wasmtime-cranelift?/component-model",
"wasmtime-winch?/component-model",
"wasmtime-runtime?/component-model",
"dep:wasmtime-component-macro",
"dep:wasmtime-component-util",
"dep:encoding_rs",
]
wmemcheck = ["wasmtime-runtime?/wmemcheck", "wasmtime-cranelift?/wmemcheck"]
demangle = ["wasmtime-environ/demangle"]
coredump = ["dep:wasm-encoder", "runtime"]
debug-builtins = ["wasmtime-runtime?/debug-builtins"]
runtime = ["dep:wasmtime-runtime", "dep:wasmtime-jit-icache-coherence"]