Expand description
wrath
A structured approach to accessing environment variables
This crate provides a derive macro for generating code to parse environment
variables into structured data without depending on any specific parsing
methodology. Instead, it provides an extensible mechanism for deciding how
each environment variable value should be parsed directly from the underlying
OsString
. This allows greater control over how parsing is done (unlike
e.g. relying entirely on the serde
crate) and doesn’t introduce unnecessary
constraints on the input data (unlike e.g. relying entirely on the
FromStr
trait).
Modules
- Errors that can occur while parsing the environment
- Parsing environment variable values into structured data
Traits
- Attempt to parse the environment variables into structured data
Derive Macros
- Automatically implement the
TryFrom
andTryFromEnv
traits