You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several of our crates lock zeroize to <1.4 to prevent MSRV breakages, as zeroize bumped MSRV to 1.51 in order to leverage const generics.
This has caused several compatibility problems when trying to add new features to zeroize, namely ZeroizeOnDrop which was added in v1.5. This means crates that use these new features are incompatible with crates that lock to old zeroize versions, even though they are otherwise code compatible on newer versions of Rust.
This is a tracking issue for these problems and getting the rest of our crates upgraded so there are no longer compatibility issues.
Can’t projects that rely on a specific MSRV set an appropriate version of zeroize in their Cargo.toml? Pinning an earlier version of zeroize seems overkill; just being compatible with an earlier version should be sufficient. (This can be tested in CI with minimal-versions, too.)
IMO, it seems reasonable to ask downstream projects that rely on an MSRV to explicitly specify versions of transitive dependencies that allow that MSRV. Or has a decision been made otherwise?
Can’t projects that rely on a specific MSRV set an appropriate version of zeroize in their Cargo.toml?
Yes. Alternatively we can also just bump MSRV.
IMO, it seems reasonable to ask downstream projects that rely on an MSRV to explicitly specify versions of transitive dependencies that allow that MSRV. Or has a decision been made otherwise?
We tried the pinning approach but it has this bad downside of unintentionally restricting what are otherwise valid combinations of versions.
Really I think the best approach is to just bump MSRV across the board so it's no longer an issue.
Reacted by trevyn, Brandon H. Gomes, Aurelia Molzer and Poliorcetics
This is becoming a problem with RSA needing zeroize >= 1.5 while chacha asks for <= 1.4. All the READMEs I have looked at say a minor version bump is enough to bump the MSRV, should I make a PR to every RustCrypto repo ?
It does look like num-bigint-dig isn't using any zeroize v1.5-specific features and that could potentially be relaxed, however really the goal of this ticket is to track things which are incompatible with zeroize v1.5.
Ah sure, I just wanted to note that the above unpinning in rsa probably had limited effect due to the transitive dependency. I guess the discussion about releasing unpinned packages was a tangent to the main discussion here.
Activity
elliptic-curve v0.11.10
Run `cargo update`
Run `cargo update`
trevyn commentedon Jan 28, 2022
Can’t projects that rely on a specific MSRV set an appropriate version of
zeroizein theirCargo.toml? Pinning an earlier version ofzeroizeseems overkill; just being compatible with an earlier version should be sufficient. (This can be tested in CI with minimal-versions, too.)IMO, it seems reasonable to ask downstream projects that rely on an MSRV to explicitly specify versions of transitive dependencies that allow that MSRV. Or has a decision been made otherwise?
tarcieri commentedon Jan 28, 2022
Yes. Alternatively we can also just bump MSRV.
We tried the pinning approach but it has this bad downside of unintentionally restricting what are otherwise valid combinations of versions.
Really I think the best approach is to just bump MSRV across the board so it's no longer an issue.
Run `cargo update`
poliorcetics commentedon Mar 15, 2022
This is becoming a problem with RSA needing
zeroize >= 1.5whilechachaasks for<= 1.4. All the READMEs I have looked at say a minor version bump is enough to bump the MSRV, should I make a PR to every RustCrypto repo ?tarcieri commentedon Mar 15, 2022
If you see any lingering crates that have
zeroizepinned, feel free to open a PR to unpin them.I agree this is preventing valid combinations of crates from working and we should try to get past it at this point.
crypto_box: Unpin `zeroize` version
Unpin `zeroize` version
Unpin `zeroize` version (#401)
crypto_box: Unpin `zeroize` version (#41)
tarcieri commentedon Mar 21, 2022
We've cut the following prereleases which unpin
zeroize:chacha20poly1305v0.10.0-pre: https://crates.io/crates/chacha20poly1305/0.10.0-prersav0.6.0-pre: https://crates.io/crates/rsa/0.6.0-preIf you're encountering problems with any other crates, let us know.
itsTyrion commentedon Apr 27, 2022
Is there an ETA for
aes-gcm-siv? The current version 0.10.3 is incompatible withrsa0.6.1.tarcieri commentedon Apr 27, 2022
I can cut a prerelease which will fix the
zeroizecompatibility issuetarcieri commentedon May 1, 2022
aes-gcm-sivv0.11.0-pre has been released with an unpinnedzeroizeandrewbaxter commentedon Jul 1, 2022
rsa0.6.0-pre on requiresnum-bigint-digwhich since March 1 also pinszeroize: ^1.51.tarcieri commentedon Jul 1, 2022
It does look like
num-bigint-digisn't using anyzeroizev1.5-specific features and that could potentially be relaxed, however really the goal of this ticket is to track things which are incompatible withzeroizev1.5.Perhaps open an issue on https://github.com/dignifiedquire/num-bigint/issues ?
andrewbaxter commentedon Jul 1, 2022
Ah sure, I just wanted to note that the above unpinning in
rsaprobably had limited effect due to the transitive dependency. I guess the discussion about releasing unpinned packages was a tangent to the main discussion here.tarcieri commentedon Aug 17, 2022
This should be resolved now. Please leave a comment if there are any remaining incompatibilities.
Unpin `zeroize` version (RustCrypto#401)
Curry44424 commentedon Mar 4, 2026
having a similar issue with zeroize but with solana dealing with a rust crate/loco