envconfig-rs icon indicating copy to clipboard operation
envconfig-rs copied to clipboard

Build a config structure from environment variables in Rust without boilerplate

Results 9 envconfig-rs issues
Sort by recently updated
recently updated
newest added

This crate fits all my needs up to a feature I'd like to see: ```rust #[derive(Envconfig)] struct Config { #[envconfig(from = "POSTGRESQL_URL", or_from = "POSTGRES_URL")] pub postgresql_url: String, } ```...

It would be beneficial to be able to use environment variables in defaults via the "env!"-macro. This would allow you to do something like this: ```rust #[derive(Clone, Debug, Envconfig)] pub...

I have noticed that this crate uses `env::var` instead of the `env::var_os` method. For some types, such as `PathBuf` there is a need to start with `OsStrBuf`, and given that...

I love this lib, simple and straight forward, thanks! Just one thing that would be nice to have: In a case like this: ```rs #[derive(Envconfig, Debug)] struct ProxyAuthConfig { enabled:...

I would like to access the reason for the ParseError error, to provide better error message to the user. If this is a feature you would consider to add, I...

Hello, I am new to Rust and thought of this feature while using it for another training project. This should allow to parse environment variables that have a common prefix...

Hey, thanks for the great library! Has there been any consideration for supporting prefixes on nested structs? It would enable reuse of nested structs in a config like the following:...

The derive macro broke if you `use anyhow::Ok`. I had accidentally import `anyhow::Ok` and notify that it broke the marcro. ```rust use anyhow::Ok; #[derive(Debug, Envconfig)] pub struct MatrixConfig { #[envconfig(from...

Hi there, first of all thanks for this crate. I'm opening a PR for supporting prefixing in nested structures. So it differs by #43 since that one supports prefixes on...