ytitov / grpc-rust-dart-demo

routeguide tutorial base to start a rust and dart server/client project
0 stars 0 forks source link

server config file #10

Open ytitov opened 4 years ago

ytitov commented 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.

ytitov commented 4 years ago

@Relentlesslba do you want to take a stab at this? Good practice with args, loading files, and toml crate

ytitov commented 4 years ago

you can make the ServerConfig be an empty struct: pub struct ServerConfig; just like that for now