fs

Crates.iofs
lib.rsfs
version0.0.5
sourcesrc
created_at2019-06-07 01:53:48.664408
updated_at2019-06-07 01:53:48.664408
descriptionA Futures implementation for File System operations
homepage
repositoryhttps://github.com/liuchong/futures-fs
max_upload_size
id139531
size32,336
刘冲 (liuchong)

documentation

https://docs.rs/fs

README

fs

Travis Build Status crates.io docs.rs

Re-published from [futures-fs](https://github.com/seanmonstar/futures-fs), access File System operations off-thread, using Futures and Streams.

Usage

let fs = FsPool::default();

// our source file
let read = fs.read("/home/sean/foo.txt", Default::default());

// default writes options to create a new file
let write = fs.write("/home/sean/out.txt", Default::default());

// block this thread!
// the reading and writing however will happen off-thread
read.forward(write).wait()
    .expect("IO error piping foo.txt to out.txt");
Commit count: 39

cargo fmt