Using .env config

This commit is contained in:
2025-10-31 15:44:30 +01:00
parent d8b48ed6d8
commit 178adf8bf5
2 changed files with 13 additions and 1 deletions
+8
View File
@@ -2,6 +2,7 @@ use std::{
collections::HashSet,
net::{TcpListener, TcpStream},
path::{Path, PathBuf},
str::FromStr,
sync::{Arc, Mutex},
};
@@ -206,3 +207,10 @@ impl Server {
res
}
}
impl FromStr for ServerConfig {
type Err = serde_json::Error;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
serde_json::from_str(s)
}
}