Open ytitov opened 4 years ago
server will need to be passed configuration via toml file at some point See https://rust-lang-nursery.github.io/rust-cookbook/encoding/complex.html#deserialize-a-toml-configuration-file for how to do it. Will need to load a file by getting the path from the cmd line args when server starts, then deserializing it into a ServerConfig struct where we will load the configuration from.
@Relentlesslba do you want to take a stab at this? Good practice with args, loading files, and toml crate
you can make the ServerConfig be an empty struct: pub struct ServerConfig; just like that for now
pub struct ServerConfig;
server will need to be passed configuration via toml file at some point See https://rust-lang-nursery.github.io/rust-cookbook/encoding/complex.html#deserialize-a-toml-configuration-file for how to do it. Will need to load a file by getting the path from the cmd line args when server starts, then deserializing it into a ServerConfig struct where we will load the configuration from.