Improved paths, and added rust specific errors

This commit is contained in:
2026-05-19 04:35:12 +02:00
parent e30722dde3
commit 95ae7b8d52
3 changed files with 41 additions and 21 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ pub struct Config {
pub output: String,
}
pub fn build() -> Config {
pub fn build() -> (Config, PathBuf) {
let start = Instant::now();
// 1. find project root
@@ -36,7 +36,7 @@ pub fn build() -> Config {
println!("build finished in {:.2?}", elapsed);
config
(config, root)
}
fn build_dir(root: &Path, base_src: &Path, current_dir: &Path, out_dir: &Path) {