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.
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 theREADME.md
forcurve25519-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 incargo doc
. Hidden lines will appear when looking at the README on GitHub.