Improved diagnostic conversion

This commit is contained in:
2026-05-19 03:24:12 +02:00
parent 49a3186d26
commit eb84103ed6
4 changed files with 65 additions and 9 deletions
+6 -4
View File
@@ -9,12 +9,12 @@ use mist_parser::error::ParseError;
use serde::Deserialize;
#[derive(Deserialize)]
struct Config {
src: String,
output: String,
pub struct Config {
pub src: String,
pub output: String,
}
pub fn build() {
pub fn build() -> Config {
let start = Instant::now();
// 1. find project root
@@ -35,6 +35,8 @@ pub fn build() {
let elapsed = start.elapsed();
println!("build finished in {:.2?}", elapsed);
config
}
fn build_dir(root: &Path, base_src: &Path, current_dir: &Path, out_dir: &Path) {