1 2 3 4 5 6 7 8 9
use toml_reader::{get, init}; #[test] fn test_config() { init("tests/config.toml").expect("Failed to init config"); let config = get(); println!("Database host: {}", config.database.host); println!("Database port: {}", config.database.port); }