All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Use the
Copy
implementation forClone
and theOrd
implementation forPartialOrd
when custom bounds are present.
1.2.7 - 2023-12-14
- Apply
#[automatically_derived]
to all generated implementations.
1.2.6 - 2023-12-04
- Use the
Copy
implementation forClone
only if no bounds are present.
1.2.5 - 2023-09-03
- Use safe casting in
PartialOrd
andOrd
implementations in more cases when possible. - Avoid unnecessarily validating the default discriminant type in some cases.
- Apply default enum discriminant type validation to all representations and make it cross-edition safe.
1.2.4 - 2023-09-01
- Take representation into account when determining the discriminant type.
- Use stable methods to retrieve the discriminant in
PartialOrd
andOrd
implementations. Safe methods used with thesafe
crate feature don't use recursive matches anymore, significantly improving the performance.
1.2.3 - 2023-08-23 [YANKED]
- Don't use
Ord
inPartialOrd
implementations if using any bounds.
1.2.2 - 2023-08-22 [YANKED]
- Avoid collisions between field names and trait method parameters.
PartialOrd
implementations now useOrd
if applicable.
1.2.1 - 2023-04-14 [YANKED]
- Correctly handle raw identifiers in named fields.
1.2.0 - 2023-03-19 [YANKED]
- Updated
syn
to v2. Debug
output of structs that skip fields appearsnon_exhaustive
now.
- The
crate
attribute now takes a bare path instead of a path inside a string literal.
1.1.0 - 2023-02-06 [YANKED]
incomparable
variant and item attribute forPartialEq
andPartialOrd
derives, yielding false on all comparisons but!=
.
1.0.0 - 2022-07-16 [YANKED]
- No changes.
1.0.0-rc.3 - 2022-03-21
- Support attribute evaluation, e.g.
#[cfg(..)]
on fields.
- Breaking Change: Upgraded MSRV to Rust 1.57.
- Upgraded to Rust edition 2021.
- Breaking Change: To prevent breaking invariants, skip groups were
introduced:
Debug
,EqHashOrd
,Hash
andZeroize
.
1.0.0-rc.2 - 2022-01-25
- Support
ZeroizeOnDrop
.
- Breaking Change: Changed to attribute instead of derive proc-macro.
- Breaking Change: Remove support for
Zeroize(drop)
.
1.0.0-rc.1 - 2021-12-08
- Initial release.