From 52a28a390283db4e5c50705545ecb5b2594de7e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Fri, 29 Jul 2022 12:21:25 +0200 Subject: [PATCH] Fix lib/vnet to compile, add wasmer-vnet --- .github/workflows/build.yml | 3 ++- lib/vnet/Cargo.toml | 4 +++- scripts/publish.py | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ddca27b28d..95a9bff9a70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -220,7 +220,8 @@ jobs: - name: Build Wasmer with minimal "sys" features run: | cargo build --no-default-features --features="sys" --manifest-path=lib/api/Cargo.toml && - cargo build --manifest-path=lib/cache/Cargo.toml + cargo build --manifest-path=lib/cache/Cargo.toml && + cargo build --manifest-path=lib/vbus/Cargo.toml - name: Dist if: matrix.build != 'macos-arm64' run: | diff --git a/lib/vnet/Cargo.toml b/lib/vnet/Cargo.toml index 8cd6a559064..697b316a742 100644 --- a/lib/vnet/Cargo.toml +++ b/lib/vnet/Cargo.toml @@ -17,4 +17,6 @@ wasmer-vfs = { path = "../vfs", version = "=3.0.0-alpha.4", default-features = f bytes = "1" [features] -default = [] +default = ["mem_fs"] +mem_fs = ["wasmer-vfs/mem-fs"] +host_fs = ["wasmer-vfs/host-fs"] \ No newline at end of file diff --git a/scripts/publish.py b/scripts/publish.py index 2ed0a6c94d2..4e8438dd035 100644 --- a/scripts/publish.py +++ b/scripts/publish.py @@ -55,8 +55,9 @@ ), "wasmer-vfs": set([]), "wasmer-vbus": set([]), + "wasmer-vnet": set([]), "wasmer-cache": set(["wasmer"]), - "wasmer-wasi": set(["wasmer", "wasmer-wasi-types", "wasmer-vfs", "wasmer-vbus"]), + "wasmer-wasi": set(["wasmer", "wasmer-wasi-types", "wasmer-vfs", "wasmer-vbus", "wasmer-vnet"]), "wasmer-wasi-types": set(["wasmer-types"]), "wasmer-wasi-experimental-io-devices": set(["wasmer-wasi"]), "wasmer-emscripten": set(["wasmer"]), @@ -116,6 +117,7 @@ "wasmer-middlewares": "middlewares", "wasmer-vfs": "vfs", "wasmer-vbus": "vbus", + "wasmer-vnet": "vnet", "wasmer-cli": "cli", "wasmer-wast": "../tests/lib/wast", }