| Crates.io | include-folder-macro |
| lib.rs | include-folder-macro |
| version | 0.1.1 |
| created_at | 2025-08-01 05:50:16.237187+00 |
| updated_at | 2025-08-01 06:06:39.119841+00 |
| description | A macro crate for generating `pub mod` sentenses |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1776153 |
| size | 17,958 |
// imagine the struct of current folder is
// ./
// ./lib.rs
// ./example.rs
// ./example/code.rs
// ./example/code2.rs
include_folder!(".");
// This will expand to
pub mod example {
pub mod code;
pub mod code2;
}
cargo add include-folder-macroinclude_folder!() macro to your lib.rs or main.rs