include_tt 1.1.1

Macros for ultra-flexible injection of token trees, literals, or binary data into Rust code from external files during compilation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use include_tt::inject;

#[test]
fn test_expr_lit() {
    let str = inject! {
        // File contains: `"123\"test"`
        #tt("./tests/expr_lit.tt")
        #break;
    };

    assert_eq!(str, "123\"test");
}