[][src]Crate embeddir

A simple crate for embedding all files in a directory into the executable.

Works similarly to std::include_bytes! macro.

For this macro to work, you must have proc_macro_hygiene feature enabled.


The files in the directory are not searched recursively, so if you have a directory tree like this:


And specify the Dir1 directory to look for files in, File1 and File2 will be embedded into your executable but File3 will not.



Takes a literal path and gives back a HashMap mapping filenames to their contents