encrypted_fs 0.1.21

An encrypted file system that mounts with FUSE on Linux. It can be used to create encrypted directories.
Documentation
use std::thread;
use tokio::process::Command;

#[tokio::main]
async fn main() {
    let sout = std::fs::OpenOptions::new()
        .write(true)
        .create(true)
        .open("encrypted_fs.out")
        .unwrap();
    let serr = std::fs::OpenOptions::new()
        .write(true)
        .create(true)
        .open("encrypted_fs.err")
        .unwrap();
    let mut child = Command::new("/home/gnome/dev/RustroverProjects/encrypted_fs/target/debug/encrypted_fs")
        .stdout(sout)
        .stderr(serr)
        .env("ENCRYPTED_FS_PASSWORD", "pass-42")
        .arg("--mount-point")
        .arg("/home/gnome/encrypted_fs")
        .arg("--data-dir")
        .arg("/home/gnome/encrypted_fs_data")
        .arg("--umount-on-start")

        .spawn()
        .expect("Failed to start process");

    thread::spawn(|| {
        thread::sleep(std::time::Duration::from_secs(10));
    }).join().expect("Thread panicked");
    child.kill().await.unwrap();
    println!("killed");

    thread::spawn(|| {
        thread::sleep(std::time::Duration::from_secs(60));
    }).join().expect("Thread panicked");
}