Crate pepe_config
source ·Modules§
- Securely zero memory with a simple trait (
Zeroize
) built on stable Rust primitives which guarantee the operation will not be “optimized away”.
Structs§
- A prioritized configuration repository. It maintains a set of configuration sources, fetches values to populate those, and provides them according to the source’s priority.
- A configuration builder
- An environment source collects a dictionary of environment variables values into a hierarchical config Value type. We have to be aware how the config tree is created from the environment dictionary, therefore we are mindful about prefixes for the environment keys, level separators, encoding form (kebab, snake case) etc.
- A configuration source backed up by a file.
- Describes a file sourced from a file
- Describes a file sourced from a string
- Wrapper type for values that contains secrets, which attempts to limit accidental exposure and ensure secrets are wiped from memory when dropped. (e.g. passwords, cryptographic keys, access tokens or other credentials)
- A configuration value.
Enums§
- Defines the type of casing a string can be.
- Represents all possible errors that can occur when working with configuration.
- File formats provided by the library.
- Underlying kind of the configuration value.
Traits§
- Describes a generic source of configuration properties capable of using an async runtime.
- Marker trait for secrets which are allowed to be cloned
- Debugging trait which is specialized for handling secret values
- Expose a reference to an inner secret
- Describes where the file is sourced
- An extension of
Format
trait. - Describes a format of configuration source data
- Describes a generic source of configuration properties.
- Trait for securely erasing values from memory.
Functions§
Type Aliases§
Box
types containing a secret value- Secret strings
Vec
types containing secret value