Crate xvc_config

Source
Expand description

Provides a general solution to maintain configuration spanned across different sources.

  • Default Values
  • System configuration
  • User configuration
  • Public project configuration (tracked by Git)
  • Private (local) project configuration (not tracked by Git)
  • Environment variables
  • Command line options

The configuration keys are string. Configuration values can be:

  • string
  • bool
  • int
  • float

Configuration files are in TOML.

Options can be nested like group.name = value.

Each option can be tracked to its source via XvcConfigOption.

Re-exports§

Modules§

Macros§

  • Binds a type with a configuration key.

Structs§

Enums§

Traits§

  • A struct implementing this trait can instantiate itself from XvcConfig.
  • Trait to update CLI options with defaults from configuration.

Functions§