Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/examples/min-platform/embedding/Cargo.toml
3072 views
1
[package]
2
name = "embedding"
3
version.workspace = true
4
authors.workspace = true
5
edition.workspace = true
6
rust-version.workspace = true
7
8
[lints]
9
workspace = 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.
15
wasmtime = { workspace = true, features = ['runtime'] }
16
17
# Following deps are only required for wasi portion:
18
wasmtime-wasi-io = { workspace = true, optional = true }
19
20
# Memory allocator used in this example (not required, however)
21
dlmalloc = "0.2.4"
22
23
[target.'cfg(target_arch = "x86_64")'.dependencies]
24
raw-cpuid = "11.5.0"
25
26
[lib]
27
crate-type = ['staticlib']
28
test = false
29
doctest = false
30
31
[features]
32
default = ["wasi"]
33
custom = ['wasmtime/custom-virtual-memory', 'wasmtime/custom-native-signals']
34
wasi = [
35
'wasmtime/component-model',
36
'wasmtime/async',
37
'dep:wasmtime-wasi-io',
38
]
39
40