#virtual-filesystem #linked #statically #icons #imitate

kinda-virtual-fs

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

1 unstable release

0.1.1 Jul 26, 2022
0.1.0 Jul 26, 2022

#1946 in Filesystem

Download history 69/week @ 2025-03-30 242/week @ 2025-04-06 201/week @ 2025-04-13 161/week @ 2025-04-20 174/week @ 2025-04-27 154/week @ 2025-05-04 226/week @ 2025-05-11 168/week @ 2025-05-18 155/week @ 2025-05-25 196/week @ 2025-06-01 175/week @ 2025-06-08 283/week @ 2025-06-15 223/week @ 2025-06-22 232/week @ 2025-06-29 252/week @ 2025-07-06 267/week @ 2025-07-13

1,023 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