Skip to content

Add support for aarch64 - #23

Merged
nagisa merged 25 commits into
nagisa:masterfrom
Pr0methean:master
May 15, 2026
Merged

Add support for aarch64#23
nagisa merged 25 commits into
nagisa:masterfrom
Pr0methean:master

Conversation

@Pr0methean

@Pr0methean Pr0methean commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

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

@nagisa nagisa left a comment

Copy link
Copy Markdown
Owner

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

nagisa commented Apr 22, 2026

Copy link
Copy Markdown
Owner

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>
@nagisa
nagisa merged commit dc91216 into nagisa:master May 15, 2026
19 checks passed
@nagisa

nagisa commented May 15, 2026

Copy link
Copy Markdown
Owner

Thanks! Sorry for taking so long to circle back to this.

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