From 884bc3a8e2f4fc27e5c3a575495886fc61db94bc Mon Sep 17 00:00:00 2001 From: Vincent Esche Date: Sun, 1 Dec 2024 00:30:11 +0100 Subject: [PATCH] Bump version to '0.5.0' --- CHANGELOG.md | 28 +++++++++++++++++++--------- Cargo.toml | 4 ++-- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cacac5..39e80cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 69e7b7e..22a100f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" @@ -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"