#memory #remotefs #testing #volatile #tree #inode

remotefs-memory

remotefs implementation for volatile memory. Good for testing and simulation.

6 releases

0.1.5 Oct 25, 2024
0.1.4 Oct 25, 2024

#23 in Simulation

Download history 527/week @ 2024-10-21 50/week @ 2024-10-28

577 downloads per month

MIT license

46KB
1K SLoC

remotefs-memory

logo

~ A remotefs implementation for testing and simulation ~

Developed by @veeso

Current version: 0.1.5

License-MIT Repo stars Downloads counter Latest version Ko-fi

Linux CI Docs


Getting Started

Add remotefs-memory to your Cargo.toml:

remotefs = "0.3"
remotefs-memory = "0.1"

Example

use std::path::PathBuf;

use remotefs_memory::{Inode, MemoryFs, node, Node, Tree};
use remotefs::RemoteFs;
use remotefs::fs::{UnixPex, Metadata};

let tempdir = PathBuf::from("/tmp");
let tree = Tree::new(node!(
    PathBuf::from("/"),
    Inode::dir(0, 0, UnixPex::from(0o755)),
    node!(tempdir.clone(), Inode::dir(0, 0, UnixPex::from(0o755)))
));
let mut client = MemoryFs::new(tree);
assert!(client.connect().is_ok());
// Change directory
assert!(client.change_dir(tempdir.as_path()).is_ok());

Changelog ⏳

View remotefs` changelog HERE


License 📃

remotefs is licensed under the MIT license.

You can read the entire license HERE

Dependencies

~0.4–0.9MB
~20K SLoC