1[package]
2name = "embedding"
3version.workspace = true
4authors.workspace = true
5edition.workspace = true
6rust-version.workspace = true
7
8[lints]
9workspace = true
10
11[dependencies]
12anyhow = { workspace = true }
13
14# Note that default-features of wasmtime are disabled and only those required
15# are enabled, in this case compilation is done in the guest from the wasm text
16# format so `cranelift` and `wat` are enabled.
17wasmtime = { workspace = true, features = ['runtime'] }
18
19# Following deps are only required for wasi portion:
20wasmtime-wasi-io = { workspace = true, optional = true }
21
22# Memory allocator used in this example (not required, however)
23dlmalloc = "0.2.4"
24
25[target.'cfg(target_arch = "x86_64")'.dependencies]
26raw-cpuid = "11.5.0"
27
28[lib]
29crate-type = ['staticlib']
30test = false
31doctest = false
32
33[features]
34default = ["wasi"]
35custom = ['wasmtime/custom-virtual-memory', 'wasmtime/custom-native-signals']
36wasi = [
37    'wasmtime/component-model',
38    'wasmtime/async',
39    'dep:wasmtime-wasi-io',
40]
41