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

#1703 in Filesystem

Download history 70/week @ 2024-11-15 135/week @ 2024-11-22 109/week @ 2024-11-29 119/week @ 2024-12-06 114/week @ 2024-12-13 98/week @ 2024-12-20 82/week @ 2024-12-27 106/week @ 2025-01-03 150/week @ 2025-01-10 131/week @ 2025-01-17 126/week @ 2025-01-24 108/week @ 2025-01-31 104/week @ 2025-02-07 107/week @ 2025-02-14 146/week @ 2025-02-21 106/week @ 2025-02-28

483 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