Skip to content

Releases: ModProg/derive-where

Generate `#[automatically_derived]`

14 Dec 15:43
a47e8ed
Compare
Choose a tag to compare

Fixed

  • Apply #[automatically_derived] to all generated implementations.

Fix `Copy + Clone` implementation

04 Dec 21:25
2ce02fb
Compare
Choose a tag to compare

Fixed

  • Use the Copy implementation for Clone only if no bounds are present.

Make discriminant default type validation edition-proof

03 Sep 11:41
d2f96a6
Compare
Choose a tag to compare

Changed

  • Use safe casting in PartialOrd and Ord 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.

Take representation into account when getting discriminant

01 Sep 22:00
1a80132
Compare
Choose a tag to compare

Fixed

  • Take representation into account when determining the discriminant type.

Changed

  • Use stable methods to retrieve the discriminant in PartialOrd and Ord
    implementations. Safe methods used with the safe crate feature don't use
    recursive matches anymore, significantly improving the performance.

Fix `PartialOrd` implementation using `Ord` with bounds [YANKED]

23 Aug 15:48
Compare
Choose a tag to compare

Fixed

  • Don't use Ord in PartialOrd implementations if using any bounds.

Fix field name collisions [YANKED]

22 Aug 14:41
0930cb0
Compare
Choose a tag to compare

Fixed

  • Avoid collisions between field names and trait method parameters.

Changed

  • PartialOrd implementations now use Ord if applicable.

Fix Raw Identifiers [YANKED]

14 Apr 10:17
Compare
Choose a tag to compare

Fixed

  • Correctly handle raw identifiers in named fields.

`syn` v2.0 update [YANKED]

19 Mar 15:57
Compare
Choose a tag to compare

Changed

  • Updated syn to v2.
  • Debug output of structs that skip fields appears non_exhaustive now.

Deprecated

  • The crate attribute now takes a bare path instead of a path inside a string
    literal.

Added `incomparable` attribute for partial comparison traits [YANKED]

05 Feb 23:13
Compare
Choose a tag to compare

Added

  • incomparable variant and item attribute for PartialEq and PartialOrd
    derives, yielding false on all comparisons but !=.

1.0 version release! 🥳 [YANKED]

16 Jul 09:54
49298f4
Compare
Choose a tag to compare