1 unstable release
0.1.1 | Jul 26, 2022 |
---|---|
0.1.0 |
|
#1247 in Filesystem
485 downloads per month
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