From 5b53c5497a57483450a85fd3e116e5658d1611db Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 16 Aug 2021 15:54:19 +0200 Subject: [PATCH] fix(c-api,cli) Use the default features from `wasmer-wasi`. `wasmer-wasi`'s default features don't change, except that it adds `host_fs` in the default features, which maps to `wasmer-vfs/host_fs`. It then ensures that the same behavior is guaranteed. We don't need to change how `wasmer-cli` and `wasmer-c-api` fetch `wasmer-wasi` in this case. --- lib/c-api/Cargo.toml | 2 +- lib/cli/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/c-api/Cargo.toml b/lib/c-api/Cargo.toml index 9b9fca8ff61..5335789a708 100644 --- a/lib/c-api/Cargo.toml +++ b/lib/c-api/Cargo.toml @@ -32,7 +32,7 @@ wasmer-engine-universal = { version = "2.0.0", path = "../engine-universal", opt wasmer-engine-dylib = { version = "2.0.0", path = "../engine-dylib", optional = true } wasmer-engine-staticlib = { version = "2.0.0", path = "../engine-staticlib", optional = true } wasmer-middlewares = { version = "2.0.0", path = "../middlewares", optional = true } -wasmer-wasi = { version = "2.0.0", path = "../wasi", default-features = false, features = ["host_fs"], optional = true } +wasmer-wasi = { version = "2.0.0", path = "../wasi", optional = true } wasmer-types = { version = "2.0.0", path = "../types" } enumset = "1.0" cfg-if = "1.0" diff --git a/lib/cli/Cargo.toml b/lib/cli/Cargo.toml index 98f248b48e7..887623da1b7 100644 --- a/lib/cli/Cargo.toml +++ b/lib/cli/Cargo.toml @@ -35,7 +35,7 @@ wasmer-engine-universal = { version = "2.0.0", path = "../engine-universal", opt wasmer-engine-dylib = { version = "2.0.0", path = "../engine-dylib", optional = true } wasmer-engine-staticlib = { version = "2.0.0", path = "../engine-staticlib", optional = true } wasmer-vm = { version = "2.0.0", path = "../vm" } -wasmer-wasi = { version = "2.0.0", path = "../wasi", default-features = false, features = ["host_fs"], optional = true } +wasmer-wasi = { version = "2.0.0", path = "../wasi", optional = true } wasmer-wasi-experimental-io-devices = { version = "2.0.0", path = "../wasi-experimental-io-devices", optional = true } wasmer-wast = { version = "2.0.0", path = "../../tests/lib/wast", optional = true } wasmer-cache = { version = "2.0.0", path = "../cache", optional = true }