Added cargo_metadata and renamed compiler module

This commit is contained in:
2026-05-19 02:04:37 +02:00
parent 2b43e0c004
commit 670835a5e7
4 changed files with 68 additions and 3 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
use std::process::{self, Command};
pub mod codegen;
pub mod compiler;
pub mod transpiler;
fn main() {
let args: Vec<String> = std::env::args().collect();
@@ -13,10 +13,10 @@ fn main() {
match args[1].as_str() {
"run" | "build" | "r" | "b" => {
compiler::build();
transpiler::build();
Command::new("cargo").args(&args[1..]).status().unwrap();
}
"transpile" | "t" => compiler::build(),
"transpile" | "t" => transpiler::build(),
"version" | "--version" | "-v" => {
println!("mist {}", env!("CARGO_PKG_VERSION"));
}