forked from wasmerio/wasmer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
293 lines (254 loc) · 7.69 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
[package]
name = "wasmer-workspace"
description = "Wasmer workspace"
publish = false
autoexamples = false
authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
[dependencies]
wasmer = { version = "=4.0.0", path = "lib/api", default-features = false }
wasmer-compiler = { version = "=4.0.0", path = "lib/compiler", features = [
"compiler",
], optional=true }
wasmer-compiler-cranelift = { version = "=4.0.0", path = "lib/compiler-cranelift", optional = true }
wasmer-compiler-singlepass = { version = "=4.0.0", path = "lib/compiler-singlepass", optional = true }
wasmer-compiler-llvm = { version = "=4.0.0", path = "lib/compiler-llvm", optional = true }
wasmer-emscripten = { version = "=4.0.0", path = "lib/emscripten", optional = true }
wasmer-wasix = { version = "0.9.0", path = "lib/wasix", optional = true }
wasmer-wast = { version = "=4.0.0", path = "tests/lib/wast", optional = true }
wasi-test-generator = { version = "=4.0.0", path = "tests/wasi-wast", optional = true }
wasmer-cache = { version = "=4.0.0", path = "lib/cache", optional = true }
wasmer-types = { version = "=4.0.0", path = "lib/types" }
wasmer-middlewares = { version = "=4.0.0", path = "lib/middlewares", optional = true }
cfg-if = "1.0"
[workspace]
members = [
"fuzz",
"lib/api",
"lib/api/macro-wasmer-universal-test",
"lib/c-api",
"lib/c-api/examples/wasmer-capi-examples-runner",
"lib/c-api/tests/wasmer-c-api-test-runner",
"lib/cache",
"lib/cli-compiler",
"lib/cli",
"lib/compiler-cranelift",
"lib/compiler-llvm",
"lib/compiler-singlepass",
"lib/compiler",
"lib/derive",
"lib/emscripten",
"lib/object",
"lib/registry",
"lib/sys-utils",
"lib/types",
"lib/virtual-fs",
"lib/virtual-net",
"lib/vm",
"lib/wai-bindgen-wasmer",
"lib/wasi-experimental-io-devices",
"lib/wasi-types",
"lib/wasix",
"lib/wasix-http-client",
"lib/wasm-interface",
"tests/integration/cli",
"tests/integration/ios",
"tests/lib/compiler-test-derive",
"tests/lib/wast",
"tests/wasi-wast",
]
exclude = [
"lib/wasi-web",
]
resolver = "2"
[workspace.package]
authors = ["Wasmer Engineering Team <[email protected]>"]
edition = "2021"
homepage = "https://wasmer.io/"
license = "MIT"
repository = "https://github.com/wasmerio/wasmer"
rust-version = "1.67"
version = "4.0.0"
[workspace.dependencies]
webc = { version = "5.0.4", default-features = false }
wapm-targz-to-pirita = "0.3.1"
wasmer-toml = "0.6.0"
[build-dependencies]
test-generator = { path = "tests/lib/test-generator" }
build-deps = "0.1.4"
anyhow = "1.0"
glob = "0.3"
rustc_version = "0.4"
[dev-dependencies]
wasmer = { version = "=4.0.0", path = "lib/api", default-features = false, features = [] }
anyhow = "1.0"
criterion = "0.3"
lazy_static = "1.4"
serial_test = "0.5"
compiler-test-derive = { path = "tests/lib/compiler-test-derive" }
tempfile = "3.6.0"
# For logging tests using the `RUST_LOG=debug` when testing
test-log = { version = "0.2", default-features = false, features = ["trace"] }
tracing = { version = "0.1", default-features = false, features = ["log"] }
tracing-subscriber = { version = "0.3", default-features = false, features = [
"env-filter",
"fmt",
] }
[features]
# Don't add the compiler features in default, please add them on the Makefile
# since we might want to autoconfigure them depending on the availability on the host.
default = [
"wat",
"wast",
"cache",
"wasi",
"engine",
"emscripten",
"middlewares",
]
# backend means that the `wasmer` crate will be compiled with the `wasmer-compiler` or the `jsc`.
# That means: that is able to execute modules
backend = []
jsc = ["wasmer/jsc", "backend", "wat", "wasmer/std"]
engine = ["universal"]
universal = []
cache = ["wasmer-cache"]
wast = ["wasmer-wast"]
wasi = ["wasmer-wasix"]
emscripten = ["wasmer-emscripten"]
wat = ["wasmer/wat"]
compiler = ["wasmer/compiler", "backend", "wasmer-compiler/translator"]
singlepass = ["compiler", "wasmer-compiler-singlepass", "wasmer/singlepass"]
cranelift = ["compiler", "wasmer-compiler-cranelift", "wasmer/cranelift"]
llvm = ["compiler", "wasmer-compiler-llvm", "wasmer/llvm"]
middlewares = ["wasmer-middlewares"]
wasmer-artifact-load = ["wasmer-compiler/wasmer-artifact-load"]
wasmer-artifact-create = ["wasmer-compiler/wasmer-artifact-create"]
static-artifact-load = ["wasmer-compiler/static-artifact-load"]
static-artifact-create = ["wasmer-compiler/static-artifact-create"]
# Testing features
test-singlepass = ["singlepass"]
test-cranelift = ["cranelift"]
test-llvm = ["llvm"]
test-universal = ["test-generator/test-universal"]
# Specifies that we're running in coverage testing mode. This disables tests
# that raise signals because that interferes with tarpaulin.
coverage = []
#[profile.release]
#debug = true
[[bench]]
name = "static_and_dynamic_functions"
harness = false
[[example]]
name = "early-exit"
path = "examples/early_exit.rs"
required-features = ["backend"]
[[example]]
name = "engine"
path = "examples/engine.rs"
required-features = ["cranelift"]
[[example]]
name = "engine-headless"
path = "examples/engine_headless.rs"
required-features = ["cranelift"]
[[example]]
name = "platform-headless-ios"
path = "examples/platform_ios_headless.rs"
required-features = ["cranelift"]
[[example]]
name = "cross-compilation"
path = "examples/engine_cross_compilation.rs"
required-features = ["cranelift"]
[[example]]
name = "compiler-singlepass"
path = "examples/compiler_singlepass.rs"
required-features = ["singlepass"]
[[example]]
name = "compiler-cranelift"
path = "examples/compiler_cranelift.rs"
required-features = ["cranelift"]
[[example]]
name = "compiler-llvm"
path = "examples/compiler_llvm.rs"
required-features = ["llvm"]
[[example]]
name = "exported-function"
path = "examples/exports_function.rs"
required-features = ["backend"]
[[example]]
name = "exported-global"
path = "examples/exports_global.rs"
required-features = ["backend"]
[[example]]
name = "exported-memory"
path = "examples/exports_memory.rs"
required-features = ["backend"]
[[example]]
name = "imported-function"
path = "examples/imports_function.rs"
required-features = ["backend"]
[[example]]
name = "imported-global"
path = "examples/imports_global.rs"
required-features = ["backend"]
[[example]]
name = "tunables-limit-memory"
path = "examples/tunables_limit_memory.rs"
required-features = ["cranelift"]
[[example]]
name = "wasi"
path = "examples/wasi.rs"
required-features = ["backend", "wasi"]
[[example]]
name = "wasi-manual-setup"
path = "examples/wasi_manual_setup.rs"
required-features = ["backend", "wasi"]
[[example]]
name = "wasi-pipes"
path = "examples/wasi_pipes.rs"
required-features = ["backend", "wasi"]
[[example]]
name = "table"
path = "examples/table.rs"
required-features = ["backend"]
[[example]]
name = "memory"
path = "examples/memory.rs"
required-features = ["backend"]
[[example]]
name = "instance"
path = "examples/instance.rs"
required-features = ["backend"]
[[example]]
name = "errors"
path = "examples/errors.rs"
required-features = ["sys"]
[[example]]
name = "imported-function-env"
path = "examples/imports_function_env.rs"
required-features = ["backend"]
[[example]]
name = "imported-function-env-global"
path = "examples/imports_function_env_global.rs"
required-features = ["backend"]
[[example]]
name = "hello-world"
path = "examples/hello_world.rs"
required-features = ["backend"]
[[example]]
name = "metering"
path = "examples/metering.rs"
required-features = ["cranelift"]
[[example]]
name = "imports-exports"
path = "examples/imports_exports.rs"
required-features = ["backend"]
[[example]]
name = "features"
path = "examples/features.rs"
required-features = ["cranelift"]