| Crates.io | include_dir_bytes |
| lib.rs | include_dir_bytes |
| version | 0.2.1 |
| created_at | 2017-10-19 07:02:34.518613+00 |
| updated_at | 2017-10-25 02:20:35.888359+00 |
| description | Read the directory recursively, and creates a `HashMap` with these contents at compile time with the file path as the key. |
| homepage | |
| repository | https://github.com/maueki/include_dir.rs |
| max_upload_size | |
| id | 36167 |
| size | 6,597 |
Read the directory recursively, and creates a HashMap with these contents at compile time with the file path as the key.
Add this to your Cargo.toml:
[dependencies]
include_dir_bytes = "0.2"
and use it like this:
#![feature(plugin)]
#![plugin(include_dir_bytes)]
// ...
let file_map = include_dir!("path/to/dir");