编译时资源文件收集器
所有权归 Eemeli Lehtonen。
#42 in #资源
5KB 91 行
static_res!
static_res! { "tests/**" } fn main() { assert!(tests::test_txt == include_bytes!("../tests/test.txt")); assert!(tests::folder::test_txt == b"yet another test"); }
~5–14MB ~166K SLoC