Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/c-api/Cargo.toml
3076 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
wasmtime = { workspace = true, features = ['runtime', 'gc', 'std'] }
25
wasmtime-c-api-macros = { workspace = true }
26
log = { workspace = true }
27
tracing = { workspace = true }
28
29
# Optional dependency for the `wat2wasm` API
30
wat = { workspace = true, optional = true }
31
32
# Optional dependencies for the `wasi` feature
33
cap-std = { workspace = true, optional = true }
34
tokio = { workspace = true, optional = true, features = ["fs"] }
35
wasmtime-wasi = { workspace = true, optional = true, features = ["p1"] }
36
wasmtime-wasi-io = { workspace = true, optional = true, features = ["std"] }
37
async-trait = { workspace = true, optional = true }
38
bytes = { workspace = true, optional = true }
39
40
# Optional dependencies for the `async` feature
41
futures = { workspace = true, optional = true }
42
43
[features]
44
# WASMTIME_FEATURE_LIST
45
async = ['wasmtime/async', 'futures']
46
profiling = ["wasmtime/profiling"]
47
cache = ["wasmtime/cache"]
48
parallel-compilation = ['wasmtime/parallel-compilation']
49
wasi = ['cap-std', 'wasmtime-wasi', 'wasmtime-wasi-io', 'tokio', 'async-trait', 'bytes']
50
logging = ['dep:env_logger']
51
disable-logging = ["log/max_level_off", "tracing/max_level_off"]
52
coredump = ["wasmtime/coredump"]
53
addr2line = ["wasmtime/addr2line"]
54
demangle = ["wasmtime/demangle"]
55
threads = ["wasmtime/threads"]
56
gc = ["wasmtime/gc"]
57
gc-drc = ["wasmtime/gc-drc"]
58
gc-null = ["wasmtime/gc-null"]
59
cranelift = ['wasmtime/cranelift']
60
winch = ['wasmtime/winch']
61
debug-builtins = ['wasmtime/debug-builtins']
62
wat = ['dep:wat', 'wasmtime/wat']
63
pooling-allocator = ["wasmtime/pooling-allocator"]
64
component-model = ["wasmtime/component-model"]
65
pulley = ["wasmtime/pulley"]
66
all-arch = ["wasmtime/all-arch"]
67
# ... if you add a line above this be sure to change the other locations
68
# marked WASMTIME_FEATURE_LIST
69
70