Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Feb 9, 2022

Deriving traits like Copy, Clone, and Debug on types which include an encoding as a generic parameter is presently problematic because there are no trait bounds specified.

These traits, Encoding and the sealed Variant which receives a blanket impl of the former, are not intended to be implemented by types outside of this crate. While adding bounds is technically a breaking change, it would be highly unexpected for this to have any real-world impact as external crates should only be consuming these traits and using them with the encoding ZSTs defined in this crate.

Deriving traits like `Copy`, `Clone`, and `Debug` on types which include
an encoding as a generic parameter is presently problematic because
there are no trait bounds specified.

These traits, `Encoding` and the sealed `Variant` which receives a
blanket impl of the former, are not intended to be implemented by types
outside of this crate. While adding bounds is technically a breaking
change, it would be highly unexpected for this to have any real-world
impact as external crates should only be consuming these traits and
using them with the encoding ZSTs defined in this crate.
@tarcieri tarcieri merged commit a1f08fd into master Feb 9, 2022
@tarcieri tarcieri deleted the base64ct/restrict-zst-bounds branch February 9, 2022 04:44
@tarcieri tarcieri mentioned this pull request Mar 11, 2022
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