Macro include_fs

Source
include_fs!() { /* proc-macro */ }
Expand description

Include a bundled directory in the binary. To use this macro, include a matching call to include_fs::bundle in your build script.

ยงExample

// In build.rs
include_fs::bundle("assets", "assets").unwrap();
include_fs::bundle("./static/public", "public").unwrap();

// In main.rs
static ASSETS: IncludeFs = include_fs!("assets");
static PUBLIC: IncludeFs = include_fs!("public");