From 3921582f5d7a6b527cc133f17ec729719187372e Mon Sep 17 00:00:00 2001 From: Rimi Kanokawa Date: Mon, 22 Jul 2024 12:13:09 -0700 Subject: [PATCH] Bump version to 1.1.4 --- RELEASES.md | 15 +++++++++++++++ enumset/Cargo.toml | 4 ++-- enumset/src/set.rs | 2 +- enumset_derive/Cargo.toml | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index bb41b1d..dcf5018 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,18 @@ +# Version 1.1.4 (2024-07-22) +* `EnumSet::::empty()`, `EnumSet::::all()`, `EnumSet::::bit_width()`, + and `EnumSet::::variant_count()` are now usable in const contexts. +* The `EnumSet::::EMPTY` and `EnumSet::::ALL` consts are deprecated in + favor of the newly const `EnumSet::::empty()` and `EnumSet::::all()` + functions. +* The `std` feature flag has been deprecated in favor of the new + `const-proc-macro` feature flag. The feature flag was never used for any + `std`-specific functionality beyond that crate. +* Minimum required Rust version is now 1.61+, due to updates in dependencies + and to allow additional functions to be `const`. +* Minimum required Rust version when the `std` or `const-proc-macro` feature + flags are enabled is now 1.69+. +* Minor fixes to documentation. (Thanks @xnuk) + # Version 1.1.3 (2023-10-11) * Fix an issue where `EnumSet::iter` was not properly inlined without LTO enabled (such as on debug builds). (thanks @Fuuzetsu) diff --git a/enumset/Cargo.toml b/enumset/Cargo.toml index ebe25c1..813d19d 100644 --- a/enumset/Cargo.toml +++ b/enumset/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "enumset" -version = "1.1.3" +version = "1.1.4" authors = ["Alissa Rao "] edition = "2021" rust-version = "1.61" @@ -32,7 +32,7 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] -enumset_derive = { version = "0.8.0", path = "../enumset_derive" } +enumset_derive = { version = "0.9.0", path = "../enumset_derive" } serde2 = { package = "serde", version = "1", default-features = false, optional = true } [dev-dependencies] diff --git a/enumset/src/set.rs b/enumset/src/set.rs index 28d46c9..ba363bc 100644 --- a/enumset/src/set.rs +++ b/enumset/src/set.rs @@ -180,7 +180,7 @@ impl EnumSet { /// This is the same as [`EnumSet::variant_count`] except in enums with "sparse" variants. /// (e.g. `enum Foo { A = 10, B = 20 }`) #[inline(always)] - pub const fn bit_width() -> u32 { + pub const fn bit_width() -> u32 { T::BIT_WIDTH } diff --git a/enumset_derive/Cargo.toml b/enumset_derive/Cargo.toml index 769f5ad..4c24393 100644 --- a/enumset_derive/Cargo.toml +++ b/enumset_derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "enumset_derive" -version = "0.8.1" +version = "0.9.0" authors = ["Alissa Rao "] edition = "2021"