static_include_lines

Macro static_include_lines 

Source
macro_rules! static_include_lines {
    ($var: ident, $filename: literal) => { ... };
}
Expand description

Include lines from a file and save them to a static variable with the given name. Each line is saved as type &str.

Example:

static_include_lines!(MY_LINES, "file.txt");

Expands to:

static MY_LINES: [&str; include_lines::count_lines!("file.txt")] = include_lines::include_lines!("file.txt");