-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update rand
and rand_core
#794
base: main
Are you sure you want to change the base?
Conversation
Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](rust-random/rand@0.8.5...0.9.0) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
It looks like many of the examples and tests expect |
@wysiwys what's the state here? Do you need input or want someone else to take over? |
@franziskuskiefer One thing I ran into that is holding back development on this branch is connected to a third-party crate, which is built on top of To go into more detail, the inputs to that function must implement the Once |
We can't keep everything back because there's a bad dependency in a small part. |
Thanks @franziskuskiefer . I went with the option of adding a second entrypoint for mceliece, since psq depends on |
The only other changes to the crates' public APIs are replacing inputs that are |
Also thanks @jschneider-bensch for providing this workaround for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good in general! I am a bit unsure around the generated code:
- The toolchain hashes are gone in the headers and codegen.txt, I don't think this is supposed to happen.
- This adds a header.txt, which seems like it maybe shouldn't be there?
- The rlimit in the F* code is different, is that correct?
libcrux-intrinsics/proofs/fstar/extraction/Libcrux_intrinsics.Arm64_extract.fst
Show resolved
Hide resolved
151b2a3
to
a1975ae
Compare
This pull request updates the dependencies
rand
from 0.8 -> 0.9 andrand_core
from 0.6 -> 0.9. It is based on dependabot's PRs (see #787 and #786).Tests and benchmarks are also updated.
Occasionally, a feature (
classic-mceliece
inlibcrux-psq
) or a benchmark requires an older version ofrand
orrand_core
. In this case, the older version of the affected crate is added toCargo.toml
with the namerand_old
orrand_core_old
, respectively.TryRngCore
where necessaryOsRng::try_fill_bytes()
instead ofOsRng::fill_bytes()
(sinceOsRng
no longer implements theCryptoRng
trait, which provides this function).try_fill_bytes()
returns an error, add anError::InsufficientOSRandomness
variant