-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add getrandom() bindings on Linux #1399
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @gnzlbg (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@gnzlbg I initially also added bindings for Android, but it looks like their libc doesn't have the |
So I decided to just remove musl support for the time being. While
This was happening because the the libc CI uses a new musl for all targets except for mips/mipsel, where it uses an older OpenWRT toolchain hosted in an AWS bucket. However, OpenWRT's archive only seems to have musl 1.1.16. So unless there's a way to get a new musl toolchain for mips, we won't be able to support |
We should support this for glibc, and for the musl targets that currently use a newer musl version. The OpenWRT toolchains for the mips targets don't get updated very often, but it does not make sense to penalize other musl users because of this. |
To be more specific, could you add this to each of the |
Done |
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.
Thanks, this LGTM, please ping me when CI is green in case I don't get notified.
@gnzlbg Everything is green |
@bors:r+
|
@bors: r+ |
📌 Commit 14b22c1 has been approved by |
Add getrandom() bindings on Linux Closes #659
☀️ Test successful - checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-travis, status-appveyor |
The existing bindings were added in rust-lang#1399 and limited to targets where rustc used musl version >= 1.1.20 which was not all musl targets at that time. Since rust-lang/rust#107129 all musl targets use musl 1.2.3. Hence, move the binding to the module root so it is available for all musl targets.
The existing bindings were added in rust-lang#1399 and limited to targets where rustc used musl version >= 1.1.20 which was not all musl targets at that time. Since rust-lang/rust#107129 all musl targets use musl 1.2.3. Hence, move the binding to the module root so it is available for all musl targets. (backport <rust-lang#4346>) (cherry picked from commit 77d3011)
Closes #659