include_tt 1.1.0

Macros for ultra-flexible injection of compiler trees, literals, or binary data into Rust syntax trees from external sources.
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");
}