]> git.lizzy.rs Git - enumset.git/blob - RELEASES.md
Remove unused `nightly` flag.
[enumset.git] / RELEASES.md
1 # Version 1.0.0 (2020-04-01) - Unreleased
2 * **[WARNING: Potential silent breaking change]** Changed `EnumSet::insert` to
3   return whether a value was newly  inserted, rather than whether the value
4   already existed in the set. This corresponds better with the behavior of
5   `HashSet::insert` and `BTreeSet::insert`.
6 * Renamed `to_bits`/`from_bits` to `to_u128`/`from_u128` and added additional
7   methods for other built-in numeric types. 
8 * `EnumSet::bit_width` and `EnumSet::variant_count` now return a `u32` instead
9   of a `u8` for future-proofing.
10 * Removed `nightly` feature flag, as it is no longer required.
11
12 # Version 0.4.5 (2020-02-19)
13 * Fixed a bug where compilation failed when the `serde` flag was enabled, and
14   another trait that defined `serialize` or `deserialize` was in scope.
15
16 # Version 0.4.4 (2019-10-12)
17 * Fixed a bug where `#[enumset(serialize_as_list)]` did not work when `Result`
18   is shadowed.
19
20 # Version 0.4.3 (2019-10-08)
21 * Implemented `Extend` and `FromIterator` for `EnumSet<T>`.
22
23 # Version 0.4.2 (2019-09-28)
24 * Fixed a bug preventing empty enums and enums with one value from compiling.
25
26 # Version 0.4.1 (2019-09-27)
27 * Fixed bug in `EnumSetIter::size_hint`.
28
29 # Version 0.4.0 (2019-05-06)
30 * Removed outdated macros and attributes.
31 * All attributes for the custom derive are now written as `#[enumset(...)]`
32 * Implemented `#[enumset(serialize_deny_unknown)]`
33 * Implemented `#[enumset(serialize_repr="...")]`
34 * `#[derive(EnumSetType)]` now only implements `Copy`, `Clone`, `PartialEq` and
35   `Eq` automatically.
36
37 # Version 0.3.19 (2019-05-02)
38 * Fix a bug when deserializing enums containing invalid bits set.
39
40 # Version 0.3.18 (2019-03-11)
41 * Fix an off-by-one error causing enums with 9, 17, 33, etc variants to behave
42   unexpectedly.
43
44 # Version 0.3.17 (2019-03-11)
45 * Add an `#[enumset_serialize_as_list]` attribute to cause the `Deserialize`
46   and `Serialize` implementations for `EnumSet<T>` to serialize it as a seq
47   of `T`s rather than an integer bitmask.
48
49 # Version 0.3.16 (2019-02-04)
50 * Added `Default` implementation for `EnumSet<T>` that returns an empty map.
51
52 # Version 0.3.15 (2019-01-08)
53 * Added optional `serde` support.
54
55 # Version 0.3.14 (2018-11-09)
56
57 * Deprecated the `enum_set_type!` macro in favor of a custom derive.
58 * Added a way to avoid the automatic operator overloads derived from
59   EnumSetTypes.
60 * Fixed a major issue that would have prevented `enumset` from being used in
61   `#[no_std]` crates.
62 * Minimum required version is now 1.30.0+. There should be no more need to
63   bump the minimum Rust version in the forseeable future.
64
65 # Prior versions
66
67 No release notes were kept for prior versions.