Filesystem in Userspace (FUSE) for Rust.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Mounts a minimal FUSE filesystem at /tmp/mount.
use fuser::{Filesystem, MountOption, Request, ReplyEmpty};
use std::ffi::OsStr;
struct MyFS;
impl Filesystem for MyFS {
fn init(&mut self, _req: &Request, _config: &mut fuser::Config<'_>) -> Result<(), libc::c_int> {
Ok(())
}
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mountpoint = "/tmp/mount";
fuser::mount2(MyFS, mountpoint, &[MountOption::AutoUnmount])?;
Ok(())
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.