StructConf is a small derive macro that allows you to combine argument parsing from clap and config file parsing from rust-ini at compile time. It's inspired by the argument parser structopt, and developed to be used in Vidify.
StructConf aims to be relatively small and simple. Here are its current selling points:
- Options available in the config file, argument parser, both, or none.
- Configurable option names.
- Custom types supported.
- Optional fields with
Option. - Custom default expressions.
- Insightful error messages.
- Thoroughly tested.
Small example:
use ;
For more details on how to use Structconf, read the docs and check out the examples.