Module configure::source

source ·
Expand description

Controlling the source of configuration.

A source of configuration is something that implements Deserializer. The configuration for each package will pass the name of that package to the source of configuration to get a deserializer for that package’s configuration struct.

If you are happy with the default configuration source - pulling from environmental variables and falling back to your Cargo.toml - nothing in this module should be of interest to you.

Libraries should never try to set the configuration source; only binaries should ever override the default.

Structs§

  • The active configuration source.
  • The default source for configuration values. You can set this as the source of configuration using the use_default_config! macro.

Statics§

  • The global static holding the active configuration source for this project.

Traits§