refactor: add `#[non_exhaustive]`
- [x] I have looked for existing issues (including closed) about this
Feature Request
Currently, any change to an enum or struct with pub fields causes a breaking change.
We should add the #[non_exhaustive] macro to all pub items.
Motivation
Less breaking changes
Proposal
Alternatives
Don't forget serde tagging
assigned
risk: Note that this can potentially cause breaking changes if a user adds #[deny(dead_code)] to a match statement and the upstream crate removes the #[non_exhaustive] lint. ref
risk: Note that this can potentially cause breaking changes if a user adds #[deny(dead_code)] to a match statement and the upstream crate removes the #[non_exhaustive] lint. ref
Yeah that's fine. We're not going to be removing the lint as #[non_exhaustive] will be a permanent change.
https://github.com/0xPlaygrounds/rig/pull/779 if you could review this, please, to make sure we have the same understanding, then I will replicate it to the code base