ITADN
ModProg/derive-where

版本发布 8

Support HRTB and various fixesv1.3.0
? · 2025-04-21

### Added - Allow lifetime `for<'a, ...>` bounds in non-bounded generic parameters. ### Changed - Use the `Copy` implementation for `Clone` and the `Ord` implementation for `PartialOrd` when custom bounds are present. ### Fixed - Support skipping only some variants with `ZeroizeOnDrop`. - Only generate single call to `zeroize()` with `ZeroizeOnDrop` on multiple fields or variants.

Generate `#[automatically_derived]`v1.2.7
? · 2023-12-14

### Fixed - Apply `#[automatically_derived]` to all generated implementations.

Fix `Copy + Clone` implementationv1.2.6
? · 2023-12-04

### Fixed - Use the `Copy` implementation for `Clone` only if no bounds are present.

Make discriminant default type validation edition-proofv1.2.5
? · 2023-09-03

### 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 discriminantv1.2.4
? · 2023-09-01

### 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 boundsv1.2.3
? · 2023-08-23

### Fixed - Don't use `Ord` in `PartialOrd` implementations if using any bounds.

Fix field name collisionsv1.2.2
? · 2023-08-22

### Fixed - Avoid collisions between field names and trait method parameters. ### Changed - `PartialOrd` implementations now use `Ord` if applicable.

Fix Raw Identifiersv1.2.1
? · 2023-04-14

### Fixed - Correctly handle raw identifiers in named fields.