https://github.com/krypt0nn/kinda-virtual-fs
Kinda virtual filesystem for :crab: Rust
https://github.com/krypt0nn/kinda-virtual-fs
Last synced: 9 months ago
JSON representation
Kinda virtual filesystem for :crab: Rust
- Host: GitHub
- URL: https://github.com/krypt0nn/kinda-virtual-fs
- Owner: krypt0nn
- License: gpl-3.0
- Created: 2022-07-26T12:31:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-27T20:37:44.000Z (over 3 years ago)
- Last Synced: 2025-09-19T05:26:24.782Z (10 months ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🦀 kinda-virtual-fs
A Rust library to imitate virtual filesystem. Used by me to link files in my applications
# Example
```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".to_string(), Entry::new(include_bytes!("../assets/icon.png").to_vec()))
]));
let path = storage.map("icon").unwrap();
println!("Icon was saved as {}", path);
```
Author: [Nikita Podvirnyy](https://github.com/krypt0nn)
Licensed under [GNU GPL 3.0](LICENSE)