Skip to content

Commit d3ef5fa

Browse files
authored
Merge pull request #46 from greyblake/prepare-v0-11-0
Prepare v0.11.0
2 parents c0d2eb0 + 45f1a2c commit d3ef5fa

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#### Unreleased
2-
* [breaking] Nested config fields now needs to be marked with #[envconfig(nested = true)]
1+
#### v0.11.0 - 2024-09-07
2+
* [breaking] Nested config fields now needs to be marked with #[envconfig(nested)]
33
* Environment variable can be automatically derived from a field name (e.g. `db_host` will be tried to loaded from `DB_HOST` env var)
44
* Add install step in README
5+
* Update `syn` dependency to 2.x.x
56

67
#### v0.10.0 - 2021-06-8
78
* Add `init_from_hashmap` to initialize config from `HashMap<String, String>` in unit tests

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn main() {
6363

6464
### Nested configs
6565

66-
Configs can be nested. Just add `#[envconfig(nested = true)]` to nested field.
66+
Configs can be nested. Just add `#[envconfig(nested)]` to nested field.
6767

6868
```rust
6969
#[derive(Envconfig)]
@@ -77,7 +77,7 @@ pub struct DbConfig {
7777

7878
#[derive(Envconfig)]
7979
pub struct Config {
80-
#[envconfig(nested = true)] // <---
80+
#[envconfig(nested)] // <---
8181
db: DbConfig,
8282

8383
#[envconfig(from = "HOSTNAME")]

envconfig/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "envconfig"
3-
version = "0.10.0"
4-
authors = ["Sergey Potapov <[email protected]>"]
3+
version = "0.11.0"
4+
authors = ["Serhii Potapov <[email protected]>"]
55
description = "Build a config structure from environment variables without boilerplate."
66
categories = ["config", "web-programming"]
77
keywords = ["config", "env", "macro", "configuration", "environment"]
@@ -14,4 +14,4 @@ edition.workspace = true
1414
workspace = true
1515

1616
[dependencies]
17-
envconfig_derive = { version = "0.10.0", path = "../envconfig_derive" }
17+
envconfig_derive = { version = "0.11.0", path = "../envconfig_derive" }

envconfig_derive/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "envconfig_derive"
3-
version = "0.10.0"
4-
authors = ["Sergey Potapov <[email protected]>"]
3+
version = "0.11.0"
4+
authors = ["Serhii Potapov <[email protected]>"]
55
description = "Build a config structure from environment variables without boilerplate."
66
categories = ["config", "web-programming"]
77
keywords = ["config", "env", "macro", "configuration", "environment"]
@@ -17,6 +17,6 @@ workspace = true
1717
proc-macro = true
1818

1919
[dependencies]
20-
syn = { version = "2.0.77", features = ["parsing", "derive"] }
21-
quote = { version = "1.0.37", features = [] }
22-
proc-macro2 = { version = "1.0.86", features = [] }
20+
syn = { version = "2.0", features = ["parsing", "derive"] }
21+
quote = { version = "1.0", features = [] }
22+
proc-macro2 = { version = "1.0", features = [] }

envconfig_derive/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ fn impl_envconfig_for_struct(
8080
Ok(config)
8181
}
8282

83+
#[deprecated(since="0.10.0", note="Please use `::init_from_env` instead")]
8384
fn init() -> ::std::result::Result<Self, ::envconfig::Error> {
8485
Self::init_from_env()
8586
}

0 commit comments

Comments
 (0)