Skip to content

digest: remove Clone from MacTraits#2341

Merged
newpavlov merged 5 commits intomasterfrom
digest/remove-clone-from-mactraits
Mar 13, 2026
Merged

digest: remove Clone from MacTraits#2341
newpavlov merged 5 commits intomasterfrom
digest/remove-clone-from-mactraits

Conversation

@tarcieri
Copy link
Member

NOTE: this is a breaking change! We are doing it in spite of digest having a stable release as the downstream crates that depend on this functionality have not yet had stable releases, so it should only impact people who are currently relying on prereleases

Closes #2329

NOTE: this is a breaking change! We are doing it in spite of `digest`
having a stable release as the downstream crates that depend on this
functionality have not yet had stable releases, so it should only impact
people who are currently relying on prereleases

Closes #2329
@tarcieri tarcieri requested a review from newpavlov March 10, 2026 18:29
@tarcieri
Copy link
Member Author

Looks like this will need a companion PR in https://github.com/RustCrypto/MACs

@newpavlov
Copy link
Member

Huh, the fun of circular dependencies... I can prepare patch-based PRs tomorrow.

@newpavlov
Copy link
Member

I merged the hmac fix. I think we can patch it as part of this PR.

@tarcieri
Copy link
Member Author

I’m busy for the next few days if you want to edit or recreate this PR

@newpavlov newpavlov merged commit 84476d3 into master Mar 13, 2026
86 checks passed
@newpavlov newpavlov deleted the digest/remove-clone-from-mactraits branch March 13, 2026 11:51
newpavlov added a commit that referenced this pull request Mar 13, 2026
Note: v0.11.1 was yanked because v0.11.2 introduces minor breaking
changes affecting only pre-release versions of downstream crates.

### Changed
- Do not implement `Clone` as part of `(Reset)MacTraits` in the
`buffer_fixed!` macro ([#2341])
- `EagerHash` trait to be a sub-trait of `Clone` ([#2341])

[#2341]: #2341
newpavlov added a commit to RustCrypto/MACs that referenced this pull request Mar 13, 2026
This PR reverts #250 and #253 since the relevant fix was added to
`digest` (see RustCrypto/traits#2341).
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.

digest: remove Clone from MacTraits in buffer_fixed!

2 participants