Skip to content

Commit

Permalink
Bump version to '0.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
regexident committed Dec 1, 2024
1 parent 66599bc commit 884bc3a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
28 changes: 19 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,11 @@ Please make sure to add your changes to the appropriate categories:

### Added

- Added enum-level `#[enumcapsulate(discriminant(…))]` helper attribute for `VariantDiscriminant` derive macro, allowing for customizing `repr = …` and `name = …` for the generated enum.
- Added variant-level `#[enumcapsulate(discriminant(…))]` helper attribute for `VariantDiscriminant` derive macro, allowing for customizing `value = …` and `name = …` for the generated variant.
- Made enum generated by `VariantDiscriminant` derive macro implement `Ord + PartialOrd`.
- n/a

### Changed

- Bumped MSRV from "1.74.0" to "1.78.0".
- Made the enum-level `#[enumcapsulate(exclude(…))]` helper macros only have an effect on derives, when orchestrated through the `Encapsulate` derive macro.
- Made `Encapsulate` derive macro no longer derive `VariantDiscriminant`.
- Removed potentially confusing `#[enumcapsulate(include(…))]` helper attributes.
- Merged `#[enumcapsulate(field(index = …))]` and `#[enumcapsulate(field(name = "…"))]` into a single polymorph `#[enumcapsulate(field = …)]`
- Made enum generated by `VariantDiscriminant` derive macro have the same level of visibility as its source item.
- n/a

### Deprecated

Expand All @@ -57,6 +50,23 @@ Please make sure to add your changes to the appropriate categories:

- n/a

## [0.5.0] - 2024-12-01

### Added

- Added enum-level `#[enumcapsulate(discriminant(…))]` helper attribute for `VariantDiscriminant` derive macro, allowing for customizing `repr = …` and `name = …` for the generated enum.
- Added variant-level `#[enumcapsulate(discriminant(…))]` helper attribute for `VariantDiscriminant` derive macro, allowing for customizing `value = …` and `name = …` for the generated variant.
- Made enum generated by `VariantDiscriminant` derive macro implement `Ord + PartialOrd`.

### Changed

- Bumped MSRV from "1.74.0" to "1.78.0".
- Made the enum-level `#[enumcapsulate(exclude(…))]` helper macros only have an effect on derives, when orchestrated through the `Encapsulate` derive macro.
- Made `Encapsulate` derive macro no longer derive `VariantDiscriminant`.
- Removed potentially confusing `#[enumcapsulate(include(…))]` helper attributes.
- Merged `#[enumcapsulate(field(index = …))]` and `#[enumcapsulate(field(name = "…"))]` into a single polymorph `#[enumcapsulate(field = …)]`
- Made enum generated by `VariantDiscriminant` derive macro have the same level of visibility as its source item.

## [0.4.0] - 2024-11-18

### Added
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation = "https://docs.rs/enumcapsulate"
license = "MPL-2.0"
edition = "2021"
rust-version = "1.78.0"
version = "0.4.0"
version = "0.5.0"

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

[dependencies]
enumcapsulate-macros = { version = "0.4.0", path = "./macros", optional = true }
enumcapsulate-macros = { version = "0.5.0", path = "./macros", optional = true }

[dev-dependencies]
tryexpand = "0.9.2"
Expand Down

0 comments on commit 884bc3a

Please sign in to comment.