-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generic-array v0.14 #166
Comments
It looks like |
It requires minimum Rust version of 1.41.0 |
Yes, it requires an MSRV bump. For what it's worth, we've bumped all of the RustCrypto crates to MSRV 1.41 for this reason. |
You might be interested in #164, if that gets reviewed/accepted. It would be nice to have a shared interoperable byte buffer type, filling the gap below std/alloc. I'm also planning a Regarding MSRV, maybe RustCrypto/traits#43 (comment) is applicable here ("depend on range instead of specific version") and would cater to all user groups. |
FYI, MSRV for That change was released in |
While I am positive to updating generic array, I am unsure if this is a breaking change in heapless. |
I am facing the need to upgrading Without it, I am forced to stay on rustc 1.47.0, as 1.48. included this this and now causes a panic. Not a deal-breaker, but having to stay on an old rustc is not ideal. I don't know about how pressing this is for others, but maybe heapless should bump it now to stay in sync with the rest of the ecosystem (rustc + generic_array)? |
It's a bit of a tough issue, this is a breaking change. I'm not sure how pliable |
What do you think @japaric ? Should we bump to 0.14 within the current version of heapless to fix the UB? |
Is min_const_generics enough? If yes, it is already merged and rustc 1.51. is to land on March 25th 2021. So it is something one can plan for. Though stripping |
Yes, |
@korken89 maybe it would be possible to bump heapless to 0.6 (bumping generic-array to 0.14), and then when you're ready, bump heapless to 0.7 (removing generic-array)? I know that's a few breaking change releases in a row, but it would be super helpful to not be stuck on 0.13 (+ the UB argument) when interoperating with the RustCrypto ecosystem. |
I agree, we could do a release to fix the UB issue, but if it is UB I'd sort of want it to be in the current version. |
We just bumped all of the RustCrypto crates to
generic-array
v0.14, which adds some nice features:RustCrypto/traits#95
It'd be great if
heapless
got updated too so we could share a single version ofgeneric-array
(which hasn't happened so far as the RustCrypto crates were previously stuck on v0.12).We use
heapless
in theaead
crate to provide aVec
-like buffer type onno_std
. Here's an example:https://docs.rs/aes-gcm/0.5.0/aes_gcm/#in-place-usage-eliminates-alloc-requirement
The text was updated successfully, but these errors were encountered: