[package]
edition = "2024"
rust-version = "1.93"
name = "wasmer"
version = "7.2.0"
authors = ["Wasmer Engineering Team <engineering@wasmer.io>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance WebAssembly runtime"
homepage = "https://wasmer.io/"
readme = "README.md"
keywords = [
"wasm",
"webassembly",
"runtime",
"vm",
]
categories = ["wasm"]
license = "MIT"
repository = "https://github.com/wasmerio/wasmer"
resolver = "2"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[package.metadata.docs.rs]
features = [
"compiler",
"core",
"cranelift",
"singlepass",
"static-artifact-create",
"static-artifact-load",
"sys",
"sys-default",
"wasmer-artifact-create",
"wasmer-artifact-load",
]
rustc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[features]
artifact-size = [
"dep:loupe",
"wasmer-vm/artifact-size",
"wasmer-compiler/artifact-size",
]
baremetal = ["wasmer-vm/baremetal"]
compiler = [
"sys",
"dep:wasmer-compiler",
"wasmer-compiler/translator",
"wasmer-compiler/compiler",
]
core = ["hashbrown"]
cranelift = [
"compiler",
"wasmer-compiler-cranelift",
]
default = ["sys-default"]
enable-serde = [
"wasmer-vm/enable-serde",
"wasmer-compiler/enable-serde",
"wasmer-types/enable-serde",
]
experimental-async = [
"dep:futures",
"dep:corosensei",
]
experimental-host-interrupt = ["wasmer-vm/experimental-host-interrupt"]
headless = []
js = [
"wasm-bindgen",
"js-sys",
]
js-default = [
"js",
"std",
"wasm-types-polyfill",
]
js-serializable-module = []
llvm = [
"compiler",
"wasmer-compiler-llvm",
]
sanitizer = ["wasmer-vm/sanitizer"]
singlepass = [
"compiler",
"wasmer-compiler-singlepass",
]
static-artifact-create = ["wasmer-compiler/static-artifact-create"]
static-artifact-load = ["wasmer-compiler/static-artifact-load"]
std = []
sys = [
"std",
"dep:wasmer-vm",
"dep:wasmer-compiler",
]
sys-default = [
"sys",
"wat",
"cranelift",
]
v8 = [
"wasm-c-api",
"std",
"dep:tempfile",
"dep:which",
"dep:xz",
"dep:ureq",
]
v8-default = [
"v8",
"wat",
]
wasm-c-api = ["wasm-types-polyfill"]
wasm-types-polyfill = ["wasmparser"]
wasmer-artifact-create = ["wasmer-compiler/wasmer-artifact-create"]
wasmer-artifact-load = ["wasmer-compiler/wasmer-artifact-load"]
wat = [
"dep:wat",
"wasmparser",
]
[lib]
name = "wasmer"
path = "src/lib.rs"
[[test]]
name = "externals"
path = "tests/externals.rs"
[[test]]
name = "function_env"
path = "tests/function_env.rs"
[[test]]
name = "import_function"
path = "tests/import_function.rs"
[[test]]
name = "instance"
path = "tests/instance.rs"
[[test]]
name = "interrupt"
path = "tests/interrupt.rs"
[[test]]
name = "interrupt_async"
path = "tests/interrupt_async.rs"
[[test]]
name = "jspi_async"
path = "tests/jspi_async.rs"
[[test]]
name = "memory"
path = "tests/memory.rs"
[[test]]
name = "module"
path = "tests/module.rs"
[[test]]
name = "module_compilation_progress"
path = "tests/module_compilation_progress.rs"
[[test]]
name = "reference_types"
path = "tests/reference_types.rs"
[[test]]
name = "rt"
path = "tests/rt.rs"
[[test]]
name = "simple_greenthread"
path = "tests/simple_greenthread.rs"
[[test]]
name = "typed_functions"
path = "tests/typed_functions.rs"
[dependencies.bytes]
version = "1.11.1"
[dependencies.cfg-if]
version = "1.0"
[dependencies.derive_more]
version = "2.0.1"
features = [
"debug",
"display",
"from",
"debug",
"unwrap",
]
[dependencies.indexmap]
version = "2"
[dependencies.loupe]
version = "0.2.0"
features = [
"indexmap",
"enable-indexmap",
]
optional = true
[dependencies.more-asserts]
version = "0.3.1"
[dependencies.paste]
version = "1.0.15"
[dependencies.shared-buffer]
version = "0.1.4"
[dependencies.symbolic-demangle]
version = "13"
features = [
"rust",
"cpp",
"msvc",
]
default-features = false
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tracing]
version = "0.1"
default-features = true
[dependencies.wat]
version = "1.252.0"
optional = true
[build-dependencies.cmake]
version = "0.1.50"
[build-dependencies.tar]
version = "0.4.40"
[build-dependencies.tempfile]
version = "3.6.0"
optional = true
[build-dependencies.ureq]
version = "3.3.0"
optional = true
[build-dependencies.which]
version = "8.0.0"
optional = true
[build-dependencies.xz]
version = "0.1.0"
optional = true
[build-dependencies.zip]
version = "8.1.0"
features = ["deflate"]
optional = true
default-features = false
[target.'cfg(all(not(target_arch = "wasm32"), target_os = "windows"))'.dependencies.windows-sys]
version = "0.61.2"
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.corosensei]
version = "0.3.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dashmap]
version = "6.1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures]
version = "0.3.30"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.itertools]
version = "0.15"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.js-sys]
version = "0.3.77"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rkyv]
version = "0.8.13"
features = [
"indexmap-2",
"bytes-1",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.target-lexicon]
version = "0.13.3"
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasm-bindgen]
version = "0.2.120"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer-compiler]
version = "=7.2.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer-compiler-cranelift]
version = "=7.2.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer-compiler-llvm]
version = "=7.2.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer-compiler-singlepass]
version = "=7.2.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer-derive]
version = "=7.2.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer-types]
version = "=7.2.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer-vm]
version = "=7.2.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmparser]
version = "0.252.0"
features = [
"validate",
"features",
"simd",
]
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.anyhow]
version = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.crossbeam-channel]
version = "0.5.15"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.futures]
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.macro-wasmer-engine-test]
version = "7.2.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3.6.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.39.0"
features = ["full"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.wat]
version = "1.252.0"
[target.'cfg(not(target_env = "musl"))'.build-dependencies.bindgen]
version = "0.72.1"
default-features = true
[target.'cfg(target_arch = "wasm32")'.dependencies.hashbrown]
version = "0.17.0"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.77"
[target.'cfg(target_arch = "wasm32")'.dependencies.serde]
version = "1"
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6.5"
[target.'cfg(target_arch = "wasm32")'.dependencies.target-lexicon]
version = "0.13.3"
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.120"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasmer-compiler]
version = "=7.2.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasmer-derive]
version = "=7.2.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasmer-types]
version = "=7.2.0"
features = ["std"]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.wasmparser]
version = "0.252.0"
features = [
"validate",
"features",
"simd",
]
optional = true
default-features = false
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.anyhow]
version = "1.0"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.macro-wasmer-engine-test]
version = "7.2.0"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.70"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wat]
version = "1.252.0"
[target.'cfg(target_env = "musl")'.build-dependencies.bindgen]
version = "0.72.1"
features = [
"logging",
"prettyplease",
"static",
]
default-features = false