#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

#1247 in Filesystem

Download history 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 64/week @ 2024-04-18 62/week @ 2024-04-25 127/week @ 2024-05-02 71/week @ 2024-05-09 79/week @ 2024-05-16 115/week @ 2024-05-23 109/week @ 2024-05-30 65/week @ 2024-06-06 117/week @ 2024-06-13 102/week @ 2024-06-20 187/week @ 2024-06-27

485 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