Skip to content
/ yarf Public

An yet another rust-fuse, focuses on just only libfuse highlevel API binding

License

Notifications You must be signed in to change notification settings

syucream/yarf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yarf; An yet another rust-fuse, focuses on just only libfuse highlevel API binding

Latest version

It's a libfuse binding in Rust. And it focuses on only libfuse highlevel API.

Documentation

https://docs.rs/yarf/0.0.2/yarf/

Usage

Require yarf crate in your Cargo.toml

[dependencies]
yarf = "0.0.2"

then you can write your filesystem as Rust struct on yarf, like below:

extern crate yarf;

...

use yarf::{FileSystem, FuseFileInfo, FuseFillDir};

...

struct MyFS;

impl FileSystem for MyFS {
    fn getattr(&self, path: String, stbuf: Option<&mut stat>) -> c_int {
        ...
    }

    ...
}

fn main() {
    let fs = Box::new(MyFS);
    yarf::yarf_main(fs);
}

About

An yet another rust-fuse, focuses on just only libfuse highlevel API binding

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages