#virtual-filesystem #linked #statically #kinda #imitate

kinda-virtual-fs

A Rust 库用于模拟虚拟文件系统并使用静态链接文件

1 个不稳定版本

0.1.1 2022 年 7 月 26 日
0.1.0 2022 年 7 月 26 日

文件系统 中排名 1247

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

GPL-3.0 许可证

15KB
86 代码行

🦀 kinda-virtual-fs

A Rust 库用于模拟虚拟文件系统。我用它来在我的应用程序中链接文件

示例

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);

作者:Nikita Podvirnyy

许可协议:GNU GPL 3.0

无运行时依赖