1 unstable release

0.1.0 Nov 18, 2023

#656 in Configuration

MIT/Apache

20KB
172 lines

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).

Dependencies

~0.5–1MB
~22K SLoC