Module configure::source [] [src]

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

ActiveConfiguration

The active configuration source.

DefaultSource

The default source for configuration values. If you do not set the source of configuration manually, this is the source that will be used.

Statics

CONFIGURATION

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