Macro include_glob::include_glob_str
source · include_glob_str!() { /* proc-macro */ }Expand description
Includes a UTF-8 encoded file as a string via a glob pattern.
Examples
Assume there is a file file.123.txt with contents hello world:
use include_glob::include_glob_str;
static FILE: &str = include_glob_str!("file.*.txt");
assert_eq!(FILE, "hello world");