Skip to content

Conversation

@dhardy
Copy link
Contributor

@dhardy dhardy commented Sep 27, 2025

This adds additional tests, then implements support for #[cfg] attributes on struct fields, enum variants and variant fields for the traits mentioned in the title.

Work is incomplete: other traits do not support #[cfg]. #[derive] does of course, so motivation here is limited.

Also supports ignore for named fields of enum variants in Clone and Debug.

Comment on lines +5 to +9
# [0.12.0] — unreleased

- Bump MSRV to 1.70 (#59)
- Let `#[autoimpl(Clone, Debug, Default)]` support `#[cfg]` on struct fields, enum variants and variant fields (#59)
- Let `#[autoimpl(Clone, Debug)]` support `ignore` on named enum fields (#59)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing changes shouldn't require a breaking release. Further changes may.

@dhardy dhardy merged commit fe02556 into master Sep 27, 2025
5 checks passed
@dhardy dhardy mentioned this pull request Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants