Event logging

This commit is contained in:
Alexey 2025-09-09 15:02:29 +03:00
commit 239484c3bc
5 changed files with 187 additions and 17 deletions

View file

@ -2,6 +2,7 @@ use config::Config;
use std::path::PathBuf;
pub mod config;
pub mod log;
pub fn load_config() -> Config {
if let Ok(path_str) = std::env::var("XDG_CONFIG_HOME") {
@ -10,5 +11,5 @@ pub fn load_config() -> Config {
path.push("config.toml");
return Config::load(path);
}
Config::new()
Config::new(PathBuf::from("./config.toml"))
}