#fs #virtual #compiler #crab #linked

kinda-virtual-fs

A Rust library to imitate virtual filesystem and use statically linked files

1 unstable release

Uses new Rust 2021

0.1.1 Jul 26, 2022
0.1.0 Jul 26, 2022

#687 in Development tools

50 downloads per month

GPL-3.0 license

15KB
86 lines

🦀 kinda-virtual-fs

A Rust library to imitate virtual filesystem. Used by me to link files in my applications

Example

use std::collections::HashMap;

use kinda_virtual_fs::*;

// File `../assets/icon.png` will be statically linked by the rust compiler
let storage = Storage::new(HashMap::from([
    ("icon", include_bytes!("../assets/icon.png"))
]));

let path = storage.map("icon").unwrap();

println!("Icon was saved as {}", path);

Author: Nikita Podvirnyy

Licensed under GNU GPL 3.0

No runtime deps