Skip to content

Commit

Permalink
Make C-API and Wasi dependencies more lean
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Dec 2, 2021
1 parent d5a444d commit 2ed70bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/c-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ crate-type = ["cdylib", "rlib", "staticlib"]
[dependencies]
# We rename `wasmer` to `wasmer-api` to avoid the conflict with this
# library name (see `[lib]`).
wasmer-api = { version = "2.1.0", path = "../api", default-features = false, package = "wasmer" }
wasmer-api = { version = "2.1.0", path = "../api", default-features = false, features = ["sys"], package = "wasmer" }
wasmer-compiler-cranelift = { version = "2.1.0", path = "../compiler-cranelift", optional = true }
wasmer-compiler-singlepass = { version = "2.1.0", path = "../compiler-singlepass", optional = true }
wasmer-compiler-llvm = { version = "2.1.0", path = "../compiler-llvm", optional = true }
Expand All @@ -32,7 +32,7 @@ wasmer-engine-universal = { version = "2.1.0", path = "../engine-universal", opt
wasmer-engine-dylib = { version = "2.1.0", path = "../engine-dylib", optional = true }
wasmer-engine-staticlib = { version = "2.1.0", path = "../engine-staticlib", optional = true }
wasmer-middlewares = { version = "2.1.0", path = "../middlewares", optional = true }
wasmer-wasi = { version = "2.1.0", path = "../wasi", optional = true }
wasmer-wasi = { version = "2.1.0", path = "../wasi", default-features = false, features = ["host-fs", "sys"], optional = true }
wasmer-types = { version = "2.1.0", path = "../types" }
enumset = "1.0"
cfg-if = "1.0"
Expand All @@ -56,7 +56,7 @@ default = [
"middlewares",
]
wat = ["wasmer-api/wat"]
wasi = ["wasmer-wasi", "typetag", "serde"]
wasi = ["wasmer-wasi"]
engine = []
middlewares = [
"compiler",
Expand Down
4 changes: 2 additions & 2 deletions lib/wasi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ tracing-wasm = "0.2"
[features]
default = ["sys-default"]

sys = ["wasmer/sys-default"]
sys-default = ["sys", "logging", "host-fs"]
sys = ["wasmer/sys"]
sys-default = ["wasmer/sys-default", "sys", "logging", "host-fs"]

js = ["wasmer/js", "mem-fs", "wasmer-vfs/no-time", "getrandom/js"]
js-default = ["js", "wasmer/js-default"]
Expand Down

0 comments on commit 2ed70bd

Please sign in to comment.