Renamed virtfs to virtual-fs and virtnet to virtual-net

This commit is contained in:
ptitSeb
2023-03-16 09:29:31 +01:00
parent 21b0bb6c2e
commit f59ab5caee
40 changed files with 125 additions and 125 deletions

View File

@@ -40,8 +40,8 @@ wasmer-cache = { version = "=3.2.0-alpha.1", path = "../cache", optional = true
wasmer-types = { version = "=3.2.0-alpha.1", path = "../types", features = ["enable-serde"] }
wasmer-registry = { version = "=4.0.0", path = "../registry" }
wasmer-object = { version = "=3.2.0-alpha.1", path = "../object", optional = true }
virtfs = { version = "0.1.0", path = "../vfs", default-features = false, features = ["host-fs"] }
virtnet = { version = "0.1.0", path = "../vnet" }
virtual-fs = { version = "0.1.0", path = "../vfs", default-features = false, features = ["host-fs"] }
virtual-net = { version = "0.1.0", path = "../vnet" }
wasmer-wasm-interface = { version = "3.2.0-alpha.1", path = "../wasm-interface" }
wasmparser = "0.51.4"
atty = "0.2"

View File

@@ -4,8 +4,8 @@ use std::collections::HashMap;
use std::path::PathBuf;
use std::sync::Arc;
use std::{collections::BTreeSet, path::Path};
use virtfs::FileSystem;
use virtfs::{DeviceFile, PassthruFileSystem, RootFileSystemBuilder};
use virtual_fs::FileSystem;
use virtual_fs::{DeviceFile, PassthruFileSystem, RootFileSystemBuilder};
use wasmer::{AsStoreMut, Instance, Module, RuntimeError, Value};
use wasmer_wasix::types::__WASI_STDIN_FILENO;
use wasmer_wasix::{
@@ -123,7 +123,7 @@ impl Wasi {
if self.networking {
rt.set_networking_implementation(virtnet_native::LocalNetworking::default());
} else {
rt.set_networking_implementation(virtnet::UnsupportedVirtualNetworking::default());
rt.set_networking_implementation(virtual_net::UnsupportedVirtualNetworking::default());
}
let engine = store.as_store_mut().engine().clone();