Skip to content

Commit c6e69e3

Browse files
committed
Update changelog
1 parent d62bf2b commit c6e69e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ Please make sure to add your changes to the appropriate categories:
2222

2323
- Added dedicated `trait AsVariant<T>` for `AsVariantRef<T>`'s removed `fn as_variant(&self) -> Option<T>`.
2424
- 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.
2528

2629
### Changed
2730

2831
- 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:
2932
- Before: `use enumcapsulate::{derive::FromVariant, FromVariant};`
3033
- After: `use enumcapsulate::FromVariant;`
3134
- Made `Encapsulate` derive macro derive also derive `AsVariant<T>`.
35+
- Promoted `field` value of `include(field = …)` to its own top-level variant attribute with name/index variants:
36+
- `#[enumcapsulate(field(index = …))]`
37+
- `#[enumcapsulate(field(name = "…"))]`
3238

3339
### Deprecated
3440

0 commit comments

Comments
 (0)