parenv
Environment variable parser with a clap style derive macro and elm style error reporting.
Installation
Usage
Here are some important features you should know about.
parenvrelies on theFromStrtrait to parse environment variables into the specified type.- The documentation comment on each field is used as the description for the corresponding environment variable.
- To make a field optional, wrap the type with an
Option. - To set a prefix value, set the attribute
#[parenv(prefix = "ENV_")]on your struct.
use ;
use Environment;