]> git.lizzy.rs Git - enumset.git/blob - RELEASES.md
Merge pull request #31 from ahcodedthat/no_super_impls
[enumset.git] / RELEASES.md
1 # Version 1.0.8 (2021-11-04)
2 * Optimized `EnumSet` iteration. (Thanks @MinusKelvin)
3
4 # Version 1.0.7 (2021-07-05)
5 * Added the `#[repr(transparent)]` flag to `EnumSet<T>` to allow for safe usage
6   in FFI code. Note that invalid bits being set in the bitset causes UB, so
7   this should be done with care. (Thanks @Riey)
8
9 # Version 1.0.6 (2021-02-27)
10 * Fix an unneeded warning in the output for `enum_set!` for a single value.
11
12 # Version 1.0.5 (2021-02-24)
13 * Implemented `core::iter::Sum` for `EnumSet<T>`.
14 * Properly acknowledge that the minimum required Rust version is actually 1.34+
15   and not 1.31+. An retroactive changelog entry has been added to 1.0.0.
16
17 # Version 1.0.4 (2021-02-07)
18 * Fixes a bug that caused `enumset_derive` to require an import of `EnumSet`
19   in the scope to function.
20
21 # Version 1.0.3 (2021-01-27)
22 * (This version contains no code changes.)
23 * Redirected badges in the README to point at travis-ci.com instead of .org
24 * Added `README.md`, and the license files to the crate distribution.
25
26 # Version 1.0.2 (2021-01-25)
27 * Fixed critical error compiling on newer versions of `syn` caused by a
28   mistaken import from a private module. (Thanks @ocboogie)
29
30 # Version 1.0.1 (2020-08-09)
31 * Implemented `ExactSizeIterator` for `EnumSetIter`. (Thanks @dmarcuse)
32
33 # Version 1.0.0 (2020-04-06)
34
35 ## Breaking Changes
36 * **[WARNING: Potential silent breaking change]** Changed `EnumSet::insert` to
37   return whether a value was newly  inserted, rather than whether the value
38   already existed in the set. This corresponds better with the behavior of
39   `HashSet::insert` and `BTreeSet::insert`.
40 * Renamed `to_bits`/`from_bits` to `as_u128`/`from_u128`.
41 * `EnumSet::bit_width` and `EnumSet::variant_count` now return a `u32` instead
42   of a `u8` for future-proofing.
43 * Removed `nightly` feature flag, as it is no longer required.
44 * Minimum required Rust version is now 1.34+.
45
46 ## New features
47 * Added a series of functions like `as_u128`/`from_u128` for other unsigned
48   numeric types. (e.g. `as_u8`/`from_u8`, `as_u16`/`from_u16`, etc)
49 * Added variants of `as_u128`/`from_u128` that return an `Option` instead of
50   panicking when the conversion cannot be done.
51 * Added variants of `as_u128`/`from_u128` that truncate unknown bits instead
52   of panicking.
53 * Implemented `Extend<EnumSet<T>>` and `FromIterator<EnumSet<T>>` for
54   `EnumSet<T>`. (Thanks @manuthambi)
55 * Added an `#[enumset(crate_name = "renamed_enumset")]` annotation for
56   handling renamed crates.
57
58 ## Bugfixes
59 * Fixed a bug where the procedural macro would fail on enums with a repr
60   annotation set. While reprs larger than u8 are supported, negative enum
61   variants or enum variants above 127 are still not currently supported.
62
63 # Version 0.4.5 (2020-02-19)
64 * Fixed a bug where compilation failed when the `serde` flag was enabled, and
65   another trait that defined `serialize` or `deserialize` was in scope.
66
67 # Version 0.4.4 (2019-10-12)
68 * Fixed a bug where `#[enumset(serialize_as_list)]` did not work when `Result`
69   is shadowed.
70
71 # Version 0.4.3 (2019-10-08)
72 * Implemented `Extend` and `FromIterator` for `EnumSet<T>`.
73
74 # Version 0.4.2 (2019-09-28)
75 * Fixed a bug preventing empty enums and enums with one value from compiling.
76
77 # Version 0.4.1 (2019-09-27)
78 * Fixed bug in `EnumSetIter::size_hint`. (Thanks @manuthambi)
79
80 # Version 0.4.0 (2019-05-06)
81 * Removed outdated macros and attributes.
82 * All attributes for the custom derive are now written as `#[enumset(...)]`
83 * Implemented `#[enumset(serialize_deny_unknown)]`
84 * Implemented `#[enumset(serialize_repr="...")]`
85 * `#[derive(EnumSetType)]` now only implements `Copy`, `Clone`, `PartialEq` and
86   `Eq` automatically.
87
88 # Version 0.3.19 (2019-05-02)
89 * Fix a bug when deserializing enums containing invalid bits set.
90
91 # Version 0.3.18 (2019-03-11)
92 * Fix an off-by-one error causing enums with 9, 17, 33, etc variants to behave
93   unexpectedly.
94
95 # Version 0.3.17 (2019-03-11)
96 * Add an `#[enumset_serialize_as_list]` attribute to cause the `Deserialize`
97   and `Serialize` implementations for `EnumSet<T>` to serialize it as a seq
98   of `T`s rather than an integer bitmask.
99
100 # Version 0.3.16 (2019-02-04)
101 * Added `Default` implementation for `EnumSet<T>` that returns an empty map.
102   (Thanks @boxdot)
103
104 # Version 0.3.15 (2019-01-08)
105 * Added optional `serde` support.
106
107 # Version 0.3.14 (2018-11-09)
108
109 * Deprecated the `enum_set_type!` macro in favor of a custom derive.
110 * Added a way to avoid the automatic operator overloads derived from
111   EnumSetTypes.
112 * Fixed a major issue that would have prevented `enumset` from being used in
113   `#[no_std]` crates.
114 * Minimum required version is now 1.30.0+. There should be no more need to
115   bump the minimum Rust version in the forseeable future.
116
117 # Prior versions
118
119 No release notes were kept for prior versions.