Skip to content

Commit

Permalink
Bump version to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymia committed May 8, 2023
1 parent 81f3838 commit 5606fd2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
A library for defining enums that can be used in compact bit sets.
It supports enums up to 128 variants, and has a macro to use these sets in constants.

Supports `serde` and `#[no_std]` environments.

See [the documentation](https://docs.rs/enumset) for more information.

# License
Expand Down
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.0 (2023-05-08)
* Removed the previous 128 variant limit, allowing for enumsets that are
backed by an array rather than a single integer.
* Added `as_array`, `from_array`, `from_slice`, and `copy_into_slice`
functions to `EnumSet<T>`. In addition, `*_truncated` and `try_*` versions
of all these functions exist.
* Added a `to_vec` function that returns the same data as the array/slice
based functions. This requires the `alloc` feature.
* Added an `EnumSet::<T>::EMPTY` constant to help with initializing empty
sets in constant contexts.
* Deprecated `#[enumset(serialize_as_list)]` in favor of
`#[enumset(serialize_repr = "list")]`.
* Deprecated `#[enumset(serialize_as_map)]` in favor of
`#[enumset(serialize_repr = "map")]`.

# Version 1.0.13 (2023-05-01)
* Updated darling to version 0.20 and syn to version 2.0.
* Added a new `#[enumset(serialize_as_map)]` attribute to allow serializing
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.0.13"
version = "1.1.0"
authors = ["Alissa Rao <[email protected]>"]
edition = "2021"

Expand Down Expand Up @@ -28,7 +28,7 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
enumset_derive = { version = "0.7.0", path = "../enumset_derive" }
enumset_derive = { version = "0.8.0", path = "../enumset_derive" }
serde2 = { package = "serde", version = "1", default-features = false, optional = true }

[dev-dependencies]
Expand Down
5 changes: 4 additions & 1 deletion enumset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
//! A library for defining enums that can be used in compact bit sets. It supports arbitrarily
//! large enums, and has very basic support for using them in constants.
//!
//! For serde support, enable the `serde` feature.
//! The following feature flags may be used for this crate:
//!
//! * `serde` enables serialization support for [`EnumSet`].
//! * `alloc` enables functions that require allocation.
//!
//! # Defining enums for use with EnumSet
//!
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.7.0"
version = "0.8.0"
authors = ["Alissa Rao <[email protected]>"]
edition = "2021"

Expand Down

0 comments on commit 5606fd2

Please sign in to comment.