Crates.io | wrath |
lib.rs | wrath |
version | 0.1.0 |
source | src |
created_at | 2023-11-18 08:27:58.14638 |
updated_at | 2023-11-18 08:27:58.14638 |
description | A structured approach to accessing environment variables |
homepage | |
repository | https://or.computer.surgery/charles/wrath |
max_upload_size | |
id | 1040366 |
size | 57,576 |
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).