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