Rename vfs -> memofs across the codebase

This commit is contained in:
Lucien Greathouse
2020-03-10 18:05:31 -07:00
parent f61f3671a6
commit 5be4175ac3
28 changed files with 43 additions and 41 deletions

View File

@@ -5,8 +5,8 @@ use std::{
use crossbeam_channel::{select, Receiver, RecvError, Sender};
use jod_thread::JoinHandle;
use memofs::{IoResultExt, Vfs, VfsEvent};
use rbx_dom_weak::{RbxId, RbxValue};
use vfs::{IoResultExt, Vfs, VfsEvent};
use crate::{
message_queue::MessageQueue,

View File

@@ -3,9 +3,9 @@ use std::{
io::{self, BufWriter, Write},
};
use memofs::Vfs;
use snafu::{ResultExt, Snafu};
use tokio::runtime::Runtime;
use vfs::Vfs;
use crate::{
cli::BuildCommand, project::ProjectError, serve_session::ServeSession, snapshot::RojoTree,

View File

@@ -3,9 +3,9 @@ use std::{
sync::Arc,
};
use memofs::Vfs;
use snafu::Snafu;
use termcolor::{BufferWriter, Color, ColorChoice, ColorSpec, WriteColor};
use vfs::Vfs;
use crate::{cli::ServeCommand, serve_session::ServeSession, web::LiveServer};

View File

@@ -1,6 +1,6 @@
use memofs::Vfs;
use reqwest::header::{ACCEPT, CONTENT_TYPE, COOKIE, USER_AGENT};
use snafu::{ResultExt, Snafu};
use vfs::Vfs;
use crate::{auth_cookie::get_auth_cookie, cli::UploadCommand, common_setup};

View File

@@ -3,8 +3,8 @@
use std::path::Path;
use memofs::Vfs;
use rbx_dom_weak::RbxInstanceProperties;
use vfs::Vfs;
use crate::{
project::Project,

View File

@@ -6,7 +6,7 @@ use std::{
};
use crossbeam_channel::Sender;
use vfs::Vfs;
use memofs::Vfs;
use crate::{
change_processor::ChangeProcessor,
@@ -190,9 +190,9 @@ mod serve_session {
use std::{path::PathBuf, time::Duration};
use maplit::hashmap;
use memofs::{InMemoryFs, VfsEvent, VfsSnapshot};
use rojo_insta_ext::RedactionMap;
use tokio::{runtime::Runtime, timer::Timeout};
use vfs::{InMemoryFs, VfsEvent, VfsSnapshot};
use crate::tree_view::view_tree;

View File

@@ -1,9 +1,9 @@
use std::{collections::BTreeMap, path::Path};
use maplit::hashmap;
use memofs::{IoResultExt, Vfs};
use rbx_dom_weak::RbxValue;
use serde::Serialize;
use vfs::{IoResultExt, Vfs};
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};

View File

@@ -1,6 +1,6 @@
use std::path::Path;
use vfs::{DirEntry, IoResultExt, Vfs};
use memofs::{DirEntry, IoResultExt, Vfs};
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
@@ -87,7 +87,7 @@ mod test {
use super::*;
use maplit::hashmap;
use vfs::{InMemoryFs, VfsSnapshot};
use memofs::{InMemoryFs, VfsSnapshot};
#[test]
fn empty_folder() {

View File

@@ -1,9 +1,9 @@
use std::{borrow::Cow, collections::HashMap, path::Path};
use memofs::Vfs;
use rbx_dom_weak::UnresolvedRbxValue;
use rbx_reflection::try_resolve_value;
use serde::Deserialize;
use vfs::Vfs;
use crate::snapshot::{InstanceContext, InstanceSnapshot};
@@ -133,7 +133,7 @@ impl JsonModelCore {
mod test {
use super::*;
use vfs::{InMemoryFs, VfsSnapshot};
use memofs::{InMemoryFs, VfsSnapshot};
#[test]
fn model_from_vfs() {

View File

@@ -1,8 +1,8 @@
use std::{path::Path, str};
use maplit::hashmap;
use memofs::{IoResultExt, Vfs};
use rbx_dom_weak::RbxValue;
use vfs::{IoResultExt, Vfs};
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
@@ -135,7 +135,7 @@ fn snapshot_init(
mod test {
use super::*;
use vfs::{InMemoryFs, VfsSnapshot};
use memofs::{InMemoryFs, VfsSnapshot};
#[test]
fn module_from_vfs() {

View File

@@ -1,6 +1,6 @@
use std::path::Path;
use vfs::Vfs;
use memofs::Vfs;
use crate::snapshot::{InstanceContext, InstanceSnapshot};

View File

@@ -21,7 +21,7 @@ pub use self::error::*;
use std::path::Path;
use vfs::Vfs;
use memofs::Vfs;
use self::middleware::{SnapshotInstanceResult, SnapshotMiddleware};
use self::{

View File

@@ -1,7 +1,7 @@
use std::{borrow::Cow, collections::HashMap, path::Path};
use memofs::{IoResultExt, Vfs};
use rbx_reflection::try_resolve_value;
use vfs::{IoResultExt, Vfs};
use crate::{
project::{Project, ProjectNode},
@@ -211,7 +211,7 @@ mod test {
use super::*;
use maplit::hashmap;
use vfs::{InMemoryFs, VfsSnapshot};
use memofs::{InMemoryFs, VfsSnapshot};
#[test]
fn project_from_folder() {

View File

@@ -1,6 +1,6 @@
use std::path::Path;
use vfs::Vfs;
use memofs::Vfs;
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};

View File

@@ -1,7 +1,7 @@
use std::{collections::HashMap, path::Path};
use memofs::Vfs;
use rbx_dom_weak::{RbxInstanceProperties, RbxTree};
use vfs::Vfs;
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
@@ -59,7 +59,7 @@ impl SnapshotMiddleware for SnapshotRbxm {
mod test {
use super::*;
use vfs::{InMemoryFs, VfsSnapshot};
use memofs::{InMemoryFs, VfsSnapshot};
#[test]
fn model_from_vfs() {

View File

@@ -1,6 +1,6 @@
use std::path::Path;
use vfs::Vfs;
use memofs::Vfs;
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
@@ -54,7 +54,7 @@ impl SnapshotMiddleware for SnapshotRbxmx {
mod test {
use super::*;
use vfs::{InMemoryFs, VfsSnapshot};
use memofs::{InMemoryFs, VfsSnapshot};
#[test]
fn plain_folder() {

View File

@@ -1,8 +1,8 @@
use std::{path::Path, str};
use maplit::hashmap;
use memofs::{IoResultExt, Vfs};
use rbx_dom_weak::RbxValue;
use vfs::{IoResultExt, Vfs};
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
@@ -65,7 +65,7 @@ impl SnapshotMiddleware for SnapshotTxt {
mod test {
use super::*;
use vfs::{InMemoryFs, VfsSnapshot};
use memofs::{InMemoryFs, VfsSnapshot};
#[test]
fn instance_from_vfs() {