#compile-time #macro #assets #testing #collector #file

macro static_res

A compile time asset file collector

2 releases

0.1.1 Jun 7, 2022
0.1.0 Apr 20, 2022

#50 in #collector

MIT license

5KB
91 lines

static_res! macro

static_res! { "tests/**" }

fn main() {
	assert!(tests::test_txt == include_bytes!("../tests/test.txt"));
	assert!(tests::folder::test_txt == b"yet another test");
}

Dependencies

~5–7MB
~127K SLoC