#virtual-filesystem #linked #statically #kinda #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

#1201 in Filesystem

Download history 66/week @ 2024-01-04 61/week @ 2024-01-11 52/week @ 2024-01-18 57/week @ 2024-01-25 55/week @ 2024-02-01 53/week @ 2024-02-08 60/week @ 2024-02-15 99/week @ 2024-02-22 66/week @ 2024-02-29 69/week @ 2024-03-07 81/week @ 2024-03-14 108/week @ 2024-03-21 131/week @ 2024-03-28 80/week @ 2024-04-04 66/week @ 2024-04-11 51/week @ 2024-04-18

345 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