iftree 1.0.0

Include many files in your Rust code for self-contained binaries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
macro_rules! initialize {
    ($relative_path:literal, $absolute_path:literal) => {
        include_str!($absolute_path)
    };
}

#[iftree::include_file_tree(
    "
paths = '/examples/assets/**'
template.initializer = 'initialize'
debug = true
"
)]
pub type Asset = &'static str;

fn main() {
    eprintln!("Debug information:\n{}", DEBUG);
}