envy icon indicating copy to clipboard operation
envy copied to clipboard

deserialize env vars into typesafe structs with rust

Results 20 envy issues
Sort by recently updated
recently updated
newest added

Hey @softprops, I encountered the problem of error accuracy when working with `envy`. [This issue](https://github.com/softprops/envy/issues/1) seems vaguely relevant, but it's missing any description, so I decided to create a new...

## 🐛 Bug description Given the following `main.rs`: ```rust #[derive(serde::Deserialize, Clone, Debug, serde::Serialize)] pub struct Person { #[serde(rename(deserialize = "surname"))] pub surname: String, #[serde(skip_serializing, rename(deserialize = "FIRST_NAME"))] pub first_name: String,...

## 💡 Feature description Personally I would like to be able to easily print out my config in a bash format. Then I could copy one of the config's env...

## 💡 Feature description #### 💻 Basic example

## 🐛 Bug description Using the flatten attribute from serde almost works but breaks in the case of non string values in flattened structs. In this case config always parses...

First of all, thanks for the fantastic library! ## 💡 Feature description I think it would've been great to support [dotenv-like](https://www.npmjs.com/package/dotenv) behavior in envy. That Node library can read environment...

## 🐛 Bug description With a struct that uses serde's [`deny_unknown_fields` container attribute](https://serde.rs/container-attrs.html#deny_unknown_fields) using non-prefixed keys envy kind-of correctly fails with the error `unknown field an_other_env_variable, expected one of ...`....

## 💡 Feature description In config-rs, there's an option to define a `separator` which allow users to structure their env vars. I think an example will illustrate better: ```rust #[derive(Deserialize)]...

## 🐛 Bug description When I use `#[serde(rename_all = "camelCase")]` attribute, envy seems to unable to find target variable. I tried another case such as `SCREAMING_SNAKE_CASE` but it also fails....

Hello, I wanted to add support of hashmap inside environment variable. I suggest this kind of syntax: `export FOO="{key:value, key2:value2}"` I'm open to any suggestions :)