[][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.

#![feature(proc_macro_hygiene)]

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

Dir1/
├──File1
├──File2
└──Dir2/
   └──File3

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

Macros

embed

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