mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Rename vfs -> memofs across the codebase
This commit is contained in:
parent
f61f3671a6
commit
5be4175ac3
28 changed files with 43 additions and 41 deletions
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use std::path::Path;
|
||||
|
||||
use vfs::Vfs;
|
||||
use memofs::Vfs;
|
||||
|
||||
use crate::snapshot::{InstanceContext, InstanceSnapshot};
|
||||
|
||||
|
|
|
|||
|
|
@ -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::{
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use std::path::Path;
|
||||
|
||||
use vfs::Vfs;
|
||||
use memofs::Vfs;
|
||||
|
||||
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue