Skip to content

Add #[non_exhaustive] to public structs and enums#10

Merged
eshork merged 2 commits intomainfrom
parity_non_exhaustive
Apr 28, 2026
Merged

Add #[non_exhaustive] to public structs and enums#10
eshork merged 2 commits intomainfrom
parity_non_exhaustive

Conversation

@eshork
Copy link
Copy Markdown
Collaborator

@eshork eshork commented Apr 28, 2026

Summary

  • Mark all public configuration structs and enums with #[non_exhaustive] to allow future field additions without semver-breaking changes
  • Update call sites to use Default + field assignment or constructors instead of struct literal initialization

Closes #9

eshork added 2 commits April 28, 2026 01:00
Mark public configuration structs and enums as non_exhaustive to
allow future field additions without breaking downstream consumers.
Update call sites to use Default + field assignment or constructors
instead of struct literal initialization.
@eshork eshork merged commit ba7ad8a into main Apr 28, 2026
4 checks passed
@eshork eshork deleted the parity_non_exhaustive branch April 28, 2026 05:18
@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
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.

Add #[non_exhaustive] to public API types likely to evolve

1 participant