#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 · Rust 包仓库 81/week @ 2024-03-14 · Rust 包仓库 108/week @ 2024-03-21 · Rust 包仓库 131/week @ 2024-03-28 · Rust 包仓库 80/week @ 2024-04-04 · Rust 包仓库 66/week @ 2024-04-11 · Rust 包仓库 64/week @ 2024-04-18 · Rust 包仓库 62/week @ 2024-04-25 · Rust 包仓库 127/week @ 2024-05-02 · Rust 包仓库 71/week @ 2024-05-09 · Rust 包仓库 79/week @ 2024-05-16 · Rust 包仓库 115/week @ 2024-05-23 · Rust 包仓库 109/week @ 2024-05-30 · Rust 包仓库 65/week @ 2024-06-06 · Rust 包仓库 117/week @ 2024-06-13 · Rust 包仓库 102/week @ 2024-06-20 · Rust 包仓库 187/week @ 2024-06-27 · Rust 包仓库

每月下载次数为 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

无运行时依赖