Macro generate_recursive_dir_content_list

Source
generate_recursive_dir_content_list!() { /* proc-macro */ }
Expand description

Generate a recursive list of pairs of the paths and the file contents for all files in a directory, returning an array of (&str, &[u8]) tuples

use mirams_proc_macros::generate_recursive_dir_content_list;
 
const FILES: &'static [(&'static str, &'static [u8])] = &generate_recursive_dir_content_list!(".");
println!("{:?}", FILES);