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