chore(lint): add staged lint baseline

This commit is contained in:
Ricardo Guilherme Schmidt
2026-05-22 09:46:53 +02:00
committed by r4bbit
parent 035f593f5e
commit 49d7f91ee5
32 changed files with 340 additions and 49 deletions
+3
View File
@@ -3,6 +3,9 @@ name = "idl-gen"
version = "0.1.0"
edition = "2021"
[lints]
workspace = true
[[bin]]
name = "idl-gen"
path = "src/main.rs"
+7 -1
View File
@@ -16,7 +16,13 @@ fn main() {
let dep_dirs = find_path_dep_dirs(&path);
match spel_framework_core::idl_gen::generate_idl_from_file_with_deps(&path, &dep_dirs) {
Ok(idl) => println!("{}", serde_json::to_string_pretty(&idl).unwrap()),
Ok(idl) => match serde_json::to_string_pretty(&idl) {
Ok(json) => println!("{json}"),
Err(e) => {
eprintln!("Error serializing IDL to JSON: {e}");
process::exit(1);
}
},
Err(e) => {
eprintln!("Error: {e}");
process::exit(1);