/
Cargo.toml
104 lines (97 loc) 路 3.12 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "wasmer-c-api"
version = "2.1.1"
description = "Wasmer C API library"
categories = ["wasm", "api-bindings"]
keywords = ["wasm", "webassembly", "runtime"]
authors = ["Wasmer Engineering Team <engineering@wasmer.io>"]
repository = "https://github.com/wasmerio/wasmer"
documentation = "https://wasmerio.github.io/wasmer/c-api/"
license = "MIT"
readme = "README.md"
edition = "2018"
[lib]
# The library name is `wasmer` so that we generate dylib like
# `libwasmer.so`, `libwasmer.dylib`, `wasmer.dll` etc. But it creates
# a conflict with the existing `wasmer` crate, see below.
name = "wasmer" # ##lib.name##
# ^ DO NOT REMOVE, it's used the `Makefile`, see `build-docs-capi`.
crate-type = ["cdylib", "rlib", "staticlib"]
[dependencies]
# We rename `wasmer` to `wasmer-api` to avoid the conflict with this
# library name (see `[lib]`).
wasmer-api = { version = "=2.1.1", path = "../api", default-features = false, features = ["sys"], package = "wasmer" }
wasmer-compiler-cranelift = { version = "=2.1.1", path = "../compiler-cranelift", optional = true }
wasmer-compiler-singlepass = { version = "=2.1.1", path = "../compiler-singlepass", optional = true }
wasmer-compiler-llvm = { version = "=2.1.1", path = "../compiler-llvm", optional = true }
wasmer-emscripten = { version = "=2.1.1", path = "../emscripten", optional = true }
wasmer-engine = { version = "=2.1.1", path = "../engine" }
wasmer-engine-universal = { version = "=2.1.1", path = "../engine-universal", optional = true }
wasmer-engine-dylib = { version = "=2.1.1", path = "../engine-dylib", optional = true }
wasmer-engine-staticlib = { version = "=2.1.1", path = "../engine-staticlib", optional = true }
wasmer-middlewares = { version = "=2.1.1", path = "../middlewares", optional = true }
wasmer-wasi = { version = "=2.1.1", path = "../wasi", default-features = false, features = ["host-fs", "sys"], optional = true }
wasmer-types = { version = "=2.1.1", path = "../types" }
enumset = "1.0"
cfg-if = "1.0"
lazy_static = "1.4"
libc = { version = "^0.2", default-features = false }
serde = { version = "1", optional = true, features = ["derive"] }
thiserror = "1"
typetag = { version = "0.1", optional = true }
paste = "1.0"
[dev-dependencies]
field-offset = "0.3.3"
inline-c = "0.1.5"
[features]
default = [
"wat",
"cranelift",
"universal",
"wasi",
"middlewares",
]
wat = ["wasmer-api/wat"]
wasi = ["wasmer-wasi"]
engine = []
middlewares = [
"compiler",
"wasmer-middlewares",
]
universal = [
"wasmer-engine-universal",
"engine",
]
dylib = [
"wasmer-engine-dylib",
"engine",
]
staticlib = [
"wasmer-engine-staticlib",
"engine",
]
compiler = [
"wasmer-api/compiler",
"wasmer-engine-universal/compiler",
"wasmer-engine-dylib/compiler",
"wasmer-engine-staticlib/compiler"
]
singlepass = [
"wasmer-compiler-singlepass",
"compiler",
]
cranelift = [
"wasmer-compiler-cranelift",
"compiler",
]
llvm = [
"wasmer-compiler-llvm",
"compiler",
]
# Deprecated features.
jit = ["universal"]
native = ["dylib"]
# TODO: Port this feature.
#emscripten = ["wasmer-emscripten"]
[build-dependencies]
cbindgen = "0.19"