[package]
name = "wasmer"
version = "0.17.0"
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
edition = "2018"
publish = true
description = "The high-level public API of the Wasmer WebAssembly runtime"
readme = "README.md"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1", features = ["derive"] }
wasmer-runtime-core = { version = "=0.17.1", path = "../runtime-core", package = "wasmer-runtime-core-fl" }

[dependencies.wasmer-singlepass-backend]
path = "../singlepass-backend"
version = "0.17.0"
optional = true
package = "wasmer-singlepass-backend-fl"

[dependencies.wasmer-llvm-backend]
path = "../llvm-backend"
version = "0.17.0"
optional = true
package = "wasmer-llvm-backend-fl"

[dependencies.wasmer-clif-backend]
path = "../clif-backend"
version = "0.17.0"
optional = true
package = "wasmer-clif-backend-fl"

[features]
# Note: we should have default backends depending on the architecture
# This target-directed-features is available in nightly
# https://github.com/rust-lang/cargo/issues/7914
default = ["cranelift", "default-backend-cranelift"]

singlepass = ["wasmer-singlepass-backend"]
llvm = ["wasmer-llvm-backend"]
cranelift = ["wasmer-clif-backend"]

default-backend-singlepass = ["singlepass"]
default-backend-llvm = ["llvm"]
default-backend-cranelift = ["cranelift"]

deterministic-execution = ["wasmer-singlepass-backend/deterministic-execution", "wasmer-runtime-core/deterministic-execution"]
