-
Notifications
You must be signed in to change notification settings - Fork 279
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
Make sure intrinsics for all architectures appear in rustdoc #1055
Comments
Do I understand correctly that a side effect of this issue is the disappearance of ARMv8 cryptography extensions which would help fixing an issue with Sha1/2 asm builds on Apple Silicon (and maybe others)? If so and the fix truly is what’s described here then I could try to submit a PR as it prevents |
I haven't looked at the cryptographic extensions in detail, but it should be fairly easy to resolve. In the longer term we need better code organization in the ARM code to separate:
|
I think I should be able to produce a simple PR based on the suggestion here as |
Conceptually this is quite simple, wherever there is a
cfg
that checks for a particulartarget_arch
, we also need to enable it ifdoc
is true. We then need to tell rustdoc that the intrinsic is only available on a particular architecture with#[cfg(doc(target_arch = "..."))]
.Basically we turn this:
#[cfg(target_arch = "arm")]
Into this:
A quick search shows the following uses of
target_arch
that need to be fixed:The text was updated successfully, but these errors were encountered: