feat: add logger and config structure

This commit is contained in:
72-S committed 2025-01-30 13:57:23 +01:00
1 parent 15abd84501
commit d9c827b3ef
11 files changed
+906 -19

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
use serde::Deserialize;
#[derive(Debug, Deserialize)]
pub struct Variables {
pub debug: bool,
}
#[derive(Debug, Deserialize)]
pub struct Paths {
pub log_dir: String,
pub config_dir: String,
pub save_dir: String,
}
#[derive(Debug, Deserialize)]
pub struct Colors {
pub background: String,
pub foreground: String,
pub highlight: String,
pub focused: String,
}
#[derive(Debug, Deserialize)]
pub struct Config {
pub variables: Variables,
pub paths: Paths,
pub colors: Colors,
}