[−][src]Macro embeddir::embed
embed!() { /* proc-macro */ }
Takes a literal path and gives back a HashMap
mapping filenames to their contents
The path can be either absolute or relative to the location of your crate's Cargo.toml
Usage example:
use embeddir::embed; use std::collections::HashMap; let dir: HashMap<&str, &[u8]> = embed!("some/path"); let file_contents = dir["file.txt"];