Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/c-api/Cargo.toml
1691 views
1
[package]
2
name = "wasmtime-c-api-impl"
3
version.workspace = true
4
authors.workspace = true
5
description = "C API to expose the Wasmtime runtime"
6
license = "Apache-2.0 WITH LLVM-exception"
7
repository = "https://github.com/bytecodealliance/wasmtime"
8
readme = "README.md"
9
edition.workspace = true
10
rust-version.workspace = true
11
links = "wasmtime-c-api"
12
include = ["include", "src", "build.rs", "CMakeLists.txt", "cmake", "doxygen.conf.in"]
13
14
[lints]
15
workspace = true
16
17
[lib]
18
name = "wasmtime_c_api"
19
test = false
20
doctest = false
21
22
[dependencies]
23
env_logger = { workspace = true, optional = true }
24
anyhow = { workspace = true }
25
wasmtime = { workspace = true, features = ['runtime', 'gc', 'std'] }
26
wasmtime-c-api-macros = { workspace = true }
27
log = { workspace = true }
28
tracing = { workspace = true }
29
30
# Optional dependency for the `wat2wasm` API
31
wat = { workspace = true, optional = true }
32
33
# Optional dependencies for the `wasi` feature
34
cap-std = { workspace = true, optional = true }
35
tokio = { workspace = true, optional = true, features = ["fs"] }
36
wasmtime-wasi = { workspace = true, optional = true, features = ["p1"] }
37
38
# Optional dependencies for the `async` feature
39
futures = { workspace = true, optional = true }
40
41
[features]
42
# WASMTIME_FEATURE_LIST
43
async = ['wasmtime/async', 'futures']
44
profiling = ["wasmtime/profiling"]
45
cache = ["wasmtime/cache"]
46
parallel-compilation = ['wasmtime/parallel-compilation']
47
wasi = ['cap-std', 'wasmtime-wasi', 'tokio']
48
logging = ['dep:env_logger']
49
disable-logging = ["log/max_level_off", "tracing/max_level_off"]
50
coredump = ["wasmtime/coredump"]
51
addr2line = ["wasmtime/addr2line"]
52
demangle = ["wasmtime/demangle"]
53
threads = ["wasmtime/threads"]
54
gc = ["wasmtime/gc"]
55
gc-drc = ["wasmtime/gc-drc"]
56
gc-null = ["wasmtime/gc-null"]
57
cranelift = ['wasmtime/cranelift']
58
winch = ['wasmtime/winch']
59
debug-builtins = ['wasmtime/debug-builtins']
60
wat = ['dep:wat', 'wasmtime/wat']
61
pooling-allocator = ["wasmtime/pooling-allocator"]
62
component-model = ["wasmtime/component-model"]
63
pulley = ["wasmtime/pulley"]
64
all-arch = ["wasmtime/all-arch"]
65
# ... if you add a line above this be sure to change the other locations
66
# marked WASMTIME_FEATURE_LIST
67
68