Skip to content

Commit cb1f215

Browse files
committed
Bump version to '0.4.0'
1 parent 06e947d commit cb1f215

File tree

2 files changed

+31
-17
lines changed

2 files changed

+31
-17
lines changed

CHANGELOG.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,19 @@ Please make sure to add your changes to the appropriate categories:
2020

2121
### Added
2222

23-
- Added dedicated `trait AsVariant<T>` for `AsVariantRef<T>`'s removed `fn as_variant(&self) -> Option<T>`.
24-
- Added dedicated `AsVariant` derive macro for `trait AsVariant<T>`.
25-
- Added enum-level `#[enumcapsulate(exclude)]`/`#[enumcapsulate(exclude(…))]` helper attribute.
26-
- Added optional selection list to variant-level `#[enumcapsulate(exclude(…))]` helper attribute.
27-
- Added optional selection list to variant-level `#[enumcapsulate(include(…))]` helper attribute.
28-
- Added derive support for generic enums (by force-excluding variants that use generic const/type parameters).
23+
- n/a
2924

3025
### Changed
3126

32-
- Removed `enumcapsulate::macros` and its redundant `enumcapsulate::derive` module in favor of re-exporting its items directly from `crate::*`, thus eliminating the need for individually importing trait + derive macro pairs:
33-
- Before: `use enumcapsulate::{derive::FromVariant, FromVariant};`
34-
- After: `use enumcapsulate::FromVariant;`
35-
- Made `Encapsulate` derive macro derive also derive `AsVariant<T>`.
36-
- Promoted `field` value of `include(field = …)` to its own top-level variant attribute with name/index variants:
37-
- `#[enumcapsulate(field(index = …))]`
38-
- `#[enumcapsulate(field(name = "…"))]`
27+
- n/a
3928

4029
### Deprecated
4130

4231
- n/a
4332

4433
### Removed
4534

46-
- Removed `fn as_variant(&self) -> Option<T>` default trait method from `AsVariantRef<T>` (see `Added` section for more info).
47-
- Removed `IsVariant<T>` trait and corresponding `IsVariant` derive macro.
35+
- n/a
4836

4937
### Fixed
5038

@@ -62,6 +50,32 @@ Please make sure to add your changes to the appropriate categories:
6250

6351
- n/a
6452

53+
## [0.4.0] - 2024-11-18
54+
55+
### Added
56+
57+
- Added dedicated `trait AsVariant<T>` for `AsVariantRef<T>`'s removed `fn as_variant(&self) -> Option<T>`.
58+
- Added dedicated `AsVariant` derive macro for `trait AsVariant<T>`.
59+
- Added enum-level `#[enumcapsulate(exclude)]`/`#[enumcapsulate(exclude(…))]` helper attribute.
60+
- Added optional selection list to variant-level `#[enumcapsulate(exclude(…))]` helper attribute.
61+
- Added optional selection list to variant-level `#[enumcapsulate(include(…))]` helper attribute.
62+
- Added derive support for generic enums (by force-excluding variants that use generic const/type parameters).
63+
64+
### Changed
65+
66+
- Removed `enumcapsulate::macros` and its redundant `enumcapsulate::derive` module in favor of re-exporting its items directly from `crate::*`, thus eliminating the need for individually importing trait + derive macro pairs:
67+
- Before: `use enumcapsulate::{derive::FromVariant, FromVariant};`
68+
- After: `use enumcapsulate::FromVariant;`
69+
- Made `Encapsulate` derive macro derive also derive `AsVariant<T>`.
70+
- Promoted `field` value of `include(field = …)` to its own top-level variant attribute with name/index variants:
71+
- `#[enumcapsulate(field(index = …))]`
72+
- `#[enumcapsulate(field(name = "…"))]`
73+
74+
### Removed
75+
76+
- Removed `fn as_variant(&self) -> Option<T>` default trait method from `AsVariantRef<T>` (see `Added` section for more info).
77+
- Removed `IsVariant<T>` trait and corresponding `IsVariant` derive macro.
78+
6579
## [0.3.0] - 2024-05-24
6680

6781
### Added

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation = "https://docs.rs/enumcapsulate"
99
license = "MPL-2.0"
1010
edition = "2021"
1111
rust-version = "1.74.0"
12-
version = "0.3.0"
12+
version = "0.4.0"
1313

1414
[package]
1515
name = "enumcapsulate"
@@ -29,7 +29,7 @@ version = { workspace = true }
2929
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
3030

3131
[dependencies]
32-
enumcapsulate-macros = { version = "0.3.0", path = "./macros", optional = true }
32+
enumcapsulate-macros = { version = "0.4.0", path = "./macros", optional = true }
3333

3434
[dev-dependencies]
3535
tryexpand = "0.9.2"

0 commit comments

Comments
 (0)