Skip to content

Commit

Permalink
Bump version to 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymia committed Jul 22, 2024
1 parent fdb5f2e commit 3921582
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Version 1.1.4 (2024-07-22)
* `EnumSet::<T>::empty()`, `EnumSet::<T>::all()`, `EnumSet::<T>::bit_width()`,
and `EnumSet::<T>::variant_count()` are now usable in const contexts.
* The `EnumSet::<T>::EMPTY` and `EnumSet::<T>::ALL` consts are deprecated in
favor of the newly const `EnumSet::<T>::empty()` and `EnumSet::<T>::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)
Expand Down
4 changes: 2 additions & 2 deletions enumset/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "enumset"
version = "1.1.3"
version = "1.1.4"
authors = ["Alissa Rao <lymia@lymiahugs.com>"]
edition = "2021"
rust-version = "1.61"
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion enumset/src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl<T: EnumSetType> EnumSet<T> {
/// 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
}

Expand Down
2 changes: 1 addition & 1 deletion enumset_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "enumset_derive"
version = "0.8.1"
version = "0.9.0"
authors = ["Alissa Rao <lymia@lymiahugs.com>"]
edition = "2021"

Expand Down

0 comments on commit 3921582

Please sign in to comment.