Make wasmer-dynasm-backend optional.

This commit is contained in:
losfair 2019-03-18 16:06:20 +08:00
parent 662a649565
commit caa239a3df
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ rand = "0.6"
[dev-dependencies] [dev-dependencies]
wasmer-clif-backend = { path = "../clif-backend", version = "0.2.0" } wasmer-clif-backend = { path = "../clif-backend", version = "0.2.0" }
wabt = "0.7.2" wabt = "0.7.2"
wasmer-dynasm-backend = { path = "../dynasm-backend", version = "0.1.0" } wasmer-dynasm-backend = { path = "../dynasm-backend", version = "0.1.0", optional = true }
[target.'cfg(not(windows))'.dev-dependencies] [target.'cfg(not(windows))'.dev-dependencies]
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.1.0" } wasmer-llvm-backend = { path = "../llvm-backend", version = "0.1.0" }
@ -32,4 +32,4 @@ glob = "0.2.11"
[features] [features]
clif = [] clif = []
llvm = [] llvm = []
dynasm = [] dynasm = ["wasmer-dynasm-backend"]

View File

@ -16,7 +16,7 @@ wabt = "0.7.2"
[dev-dependencies] [dev-dependencies]
wasmer-clif-backend = { path = "../clif-backend", version = "0.2.0" } wasmer-clif-backend = { path = "../clif-backend", version = "0.2.0" }
wasmer-dynasm-backend = { path = "../dynasm-backend", version = "0.1.0" } wasmer-dynasm-backend = { path = "../dynasm-backend", version = "0.1.0", optional = true }
wabt = "0.7.2" wabt = "0.7.2"
[target.'cfg(not(windows))'.dependencies] [target.'cfg(not(windows))'.dependencies]
@ -27,4 +27,4 @@ default = ["fast-tests"]
fast-tests = [] fast-tests = []
clif = [] clif = []
llvm = ["wasmer-llvm-backend"] llvm = ["wasmer-llvm-backend"]
dynasm = [] dynasm = ["wasmer-dynasm-backend"]