remotefs-memory
Getting Started
Add remotefs-memory to your Cargo.toml:
= "1"
= "1"
MemoryFs implements the blocking remotefs::RemoteFs trait from remotefs 1.
Every path is absolute and the tree root is /; there is no working
directory. Transfers return owned streams that must be finished. Async
consumers can wrap the client in remotefs::adapters::r#async::Unblock
(remotefs tokio feature).
Example
use Write;
use ;
use ;
use RemoteFs;
use ;
let tempdir = from;
let tree = new;
let mut client = new;
client.connect.unwrap;
let mut stream = client
.create
.unwrap;
stream.write_all.unwrap;
stream.finish.unwrap;
let mut output = Vecnew;
client
.read_file
.unwrap;
assert_eq!;
Contributing 🤝
Contributions, bug reports, new features, and questions are welcome! 😉 If you have any questions or concerns, or you want to suggest a new feature, or you want just want to improve remotefs, feel free to open an issue or a PR.
Please read the AI policy before opening a pull request.
Changelog ⏳
View remotefs` changelog HERE
License 📃
remotefs is licensed under the MIT license.
You can read the entire license HERE