Registry / other / fuser
library0.17.0rscratesunverified

Filesystem in Userspace (FUSE) for Rust.

# Cargo.toml [dependencies] fuser = "0.17.0"
INSTALL
IMPORT
SIG · FUSER
F
fuser
otherrustv0.17.0
harness data pending
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.

Filesystem
use fuser::Filesystem;

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(()) }
Debug
Known issues
gotchaRequires FUSE kernel module and appropriate permissions (often root).
fix
Run with sudo or add user to fuse group.
affects: >=0.17.0
Upgrade
Version history
0.17.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Resources
fuser — cargo add fuser · libregistry