feat: config loading from config.toml

This commit is contained in:
Lewis Wynne 2026-04-09 11:19:51 +01:00
parent 475acc596b
commit 16a9699fc6
3 changed files with 53 additions and 1 deletions

View file

@ -1,3 +1,6 @@
mod config;
fn main() {
println!("guestbook");
let config = config::Config::load("config.toml").expect("failed to load config.toml");
println!("listening on {}", config.listen);
}