diff --git a/build.rs b/build.rs index 0a51531..210758b 100644 --- a/build.rs +++ b/build.rs @@ -7,9 +7,9 @@ use std::{ const COMMAND_DIR: &str = "./src/commands/"; const EVENT_DIR: &str = "./src/events/"; -const MODEL_DIR: &str = "./src/models/"; -const DB_DIR: &str = "./src/database/"; -const UTILS_DIR: &str = "./src/database/"; +const MODEL_DIR: &str = "./src/models"; +const DB_DIR: &str = "./src/database"; +const UTILS_DIR: &str = "./src/utils"; const MOD_PREFIX: &str = "pub mod "; const MOD_FILE: &str = "/mod_gen.rs"; @@ -42,9 +42,10 @@ fn read_dir(dir: &Path) -> Vec { dir_content } -/// @brief Search all the subfolder and read all the rust files -/// @return Map -/// * `dir`: Path to search src +/// Search all the subfolder and read all the rust files +/// * `dir` - Path to search src +/// +/// Return Map fn list_srcs(dir: &Path) -> HashMap> { let mut to_ret: HashMap> = HashMap::new(); let root: ReadDir = fs::read_dir(dir).unwrap();