Skip to content

Add support for aarch64#23

Open
Pr0methean wants to merge 25 commits intonagisa:masterfrom
Pr0methean:master
Open

Add support for aarch64#23
Pr0methean wants to merge 25 commits intonagisa:masterfrom
Pr0methean:master

Conversation

@Pr0methean
Copy link
Copy Markdown
Contributor

@Pr0methean Pr0methean commented Mar 7, 2026

Fixes #20

This adds support for the RNDR and RNDRRS registers on aarch64, which provide the functionality of RDRAND and RDSEED respectively on CPUs built with the optional FEAT_RNG. This support is tested through cross, which uses qemu, because the aarch64 CPUs currently available in GitHub Actions don't have FEAT_RNG. std is now an optional feature once again, but is currently only used for Aarch64 CPU feature detection on some Tier 2/3 platforms (mainly iOS and OpenBSD).

Comment thread .cargo/config.toml Outdated
Comment thread Cargo.toml
Comment thread Cargo.toml Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs
Copy link
Copy Markdown
Owner

@nagisa nagisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI appears to be failing due to a missing use.

Comment thread src/lib.rs Outdated
Comment thread src/lib.rs
@nagisa
Copy link
Copy Markdown
Owner

nagisa commented Apr 22, 2026

Waiting on a rebase. Feel free to squash if that makes rebasing easier for you.

@Pr0methean
Copy link
Copy Markdown
Contributor Author

Done.

@Pr0methean
Copy link
Copy Markdown
Contributor Author

@nagisa CI is now passing, and this is ready for review AFAICT.

Comment thread .github/workflows/rdrand.yml Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs
Pr0methean and others added 3 commits April 28, 2026 17:06
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
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.

Doesn't compile on Apple Silicon

2 participants