rclap
rclap is a configuration helper based on clap. It is designed to expose the requirement as config files, environment variables, and command line arguments with the least amount of boilerplate code. Macro clap generator based on toml files
Usage
simple toml file
= { = "u16", = "8080", = "Server port number", = "PORT" }
= { = "u16", = "2", = "Server id number", = "ID", = true }
Then the config struct can be generated by the following code
use Parser;
use config;
;