Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

971 B
Raw Blame
[package]
name = "embedding"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true

[lints]
workspace = true

[dependencies]
# Note that default-features of wasmtime are disabled and only those required
# are enabled, in this case compilation is done in the guest from the wasm text
# format so `cranelift` and `wat` are enabled.
wasmtime = { workspace = true, features = ['runtime'] }

# Following deps are only required for wasi portion:
wasmtime-wasi-io = { workspace = true, optional = true }

# Memory allocator used in this example (not required, however)
dlmalloc = "0.2.4"

[target.'cfg(target_arch = "x86_64")'.dependencies]
raw-cpuid = "11.5.0"

[lib]
crate-type = ['staticlib']
test = false
doctest = false

[features]
default = ["wasi"]
custom = ['wasmtime/custom-virtual-memory', 'wasmtime/custom-native-signals']
wasi = [
    'wasmtime/component-model',
    'wasmtime/async',
    'dep:wasmtime-wasi-io',
]