Migrate to denenv

This commit is contained in:
Alexander
2026-06-19 00:07:35 +02:00
parent 83ff042b91
commit b1f32372f7
10 changed files with 893 additions and 189 deletions
+18
View File
@@ -0,0 +1,18 @@
use fuser::Filesystem;
use std::env;
struct JsonFilesystem;
impl Filesystem for JsonFilesystem {}
fn main() {
let mountpoint = match env::args().nth(1) {
Some(path) => path,
None => {
println!("Usage: {} <MOUNTPOINT>", env::args().nth(0).unwrap());
return;
}
};
let cfg = fuser::Config::default();
let _ = fuser::mount2(JsonFilesystem, &mountpoint, &cfg);
}