Skip to content

Commit

Permalink
Merge #708
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bors[bot] and YaronWittenstein authored Aug 22, 2019
2 parents 7e03027 + 86a3a75 commit 877fe44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/runtime-c-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ crate-type = ["cdylib", "rlib", "staticlib"]
libc = "0.2.60"

[dependencies.wasmer-runtime]
default-features = false
path = "../runtime"
version = "0.6.0"

[dependencies.wasmer-runtime-core]
default-features = false
path = "../runtime-core"
version = "0.6.0"

[features]
default = ["cranelift-backend"]
debug = ["wasmer-runtime/debug"]
llvm = ["wasmer-runtime/llvm"]
cranelift-backend = ["wasmer-runtime/cranelift", "wasmer-runtime/default-backend-cranelift"]
llvm-backend = ["wasmer-runtime/llvm", "wasmer-runtime/default-backend-llvm"]
singlepass-backend = ["wasmer-runtime/singlepass", "wasmer-runtime/default-backend-singlepass"]

[build-dependencies]
cbindgen = "0.9.0"

0 comments on commit 877fe44

Please sign in to comment.