Skip to content
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

Avoid cargo test -p curve25519-dalek-derive failure on ARM #585

Merged

Conversation

nategraf
Copy link
Contributor

On a MacBook M1, I noticed cargo test in the workspace root fails. It fails due to the references to #[target_feature(enable = "avx2")] in the README.md for curve25519-dalek-derive.

This PR avoids the test failure by adding conditional compile statements on the usages of target_feature. cfg statements are added as hidden lines in the examples and so they will not appear in cargo doc. Hidden lines will appear when looking at the README on GitHub.

@nategraf
Copy link
Contributor Author

Let me know if this seems like the right solution, or if you'd like me to rework it.

@tarcieri
Copy link
Contributor

tarcieri commented Oct 3, 2023

Seems fine to me

@tarcieri tarcieri merged commit e6675c6 into dalek-cryptography:main Oct 3, 2023
13 checks passed
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.

None yet

2 participants