Crate conf

Source
Expand description

A derive-based, highly composable env-and-argument parser aimed at the practically-minded web developer building large web projects.

To use conf, use the #[derive(Conf)] proc macro on your configuration struct. Then call a Conf trait function to parse your configuration struct. Proc macro attributes are documented there.

See README for an overview.

Structs§

Error
An error which occurs when a Conf::parse function is called. This may conceptually represent many underlying errors of several different types.

Traits§

Conf
The Conf trait is implemented by types that represent a collection of config parsed on startup, and is modeled on clap::Parser. Users usually call parse or another of these functions on their config structure in main().
Subcommands
The Subcommands trait represents one or more subcommands, and is derived on Enums.