Skip to content

Commit 877fe44

Browse files
bors[bot]YaronWittenstein
andauthoredAug 22, 2019
Merge #708
708: runtime-c-api: not installing cranelift if not necessary r=Hywan a=YaronWittenstein having `default-features = false` lets us install the `runtime-c-api` with `default-backend-singlepass` without installing also `cranelift` Co-authored-by: Yaron Wittenstein <yaron.wittenstein@gmail.com>
2 parents 7e03027 + 86a3a75 commit 877fe44

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎lib/runtime-c-api/Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,21 @@ crate-type = ["cdylib", "rlib", "staticlib"]
1515
libc = "0.2.60"
1616

1717
[dependencies.wasmer-runtime]
18+
default-features = false
1819
path = "../runtime"
1920
version = "0.6.0"
2021

2122
[dependencies.wasmer-runtime-core]
23+
default-features = false
2224
path = "../runtime-core"
2325
version = "0.6.0"
2426

2527
[features]
28+
default = ["cranelift-backend"]
2629
debug = ["wasmer-runtime/debug"]
27-
llvm = ["wasmer-runtime/llvm"]
30+
cranelift-backend = ["wasmer-runtime/cranelift", "wasmer-runtime/default-backend-cranelift"]
31+
llvm-backend = ["wasmer-runtime/llvm", "wasmer-runtime/default-backend-llvm"]
32+
singlepass-backend = ["wasmer-runtime/singlepass", "wasmer-runtime/default-backend-singlepass"]
2833

2934
[build-dependencies]
3035
cbindgen = "0.9.0"

0 commit comments

Comments
 (0)
Please sign in to comment.