Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fd02193

Browse files
committedAug 25, 2022
aes: remove use of aarch64_target_feature
It's been stabilized: rust-lang/rust#90620 Because of that, it's breaking the build on recent nightlies: https://github.com/RustCrypto/block-ciphers/runs/7968517726?check_suite_focus=true#step:7:103 > error: the feature `aarch64_target_feature` has been stable since > 1.61.0 and no longer requires an attribute to enable aes: remove use of `aarch64_target_feature` It's been stabilized: rust-lang/rust#90620 Because of that, it's breaking the build on recent nightlies: https://github.com/RustCrypto/block-ciphers/runs/7968517726?check_suite_focus=true#step:7:103 > error: the feature `aarch64_target_feature` has been stable since > 1.61.0 and no longer requires an attribute to enable
1 parent ca6a657 commit fd02193

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

‎aes/Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ categories = ["cryptography", "no-std"]
1515
[dependencies]
1616
cfg-if = "1"
1717
cipher = "0.4.2"
18-
zeroize = { version = "1.5.4", optional = true, default_features = false }
1918

2019
[target.'cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))'.dependencies]
2120
cpufeatures = "0.2"
2221

22+
[target.'cfg(not(all(aes_armv8, target_arch = "aarch64")))'.dependencies]
23+
zeroize = { version = "1.5.4", optional = true, default_features = false }
24+
25+
[target.'cfg(all(aes_armv8, target_arch = "aarch64"))'.dependencies]
26+
zeroize = { version = "1.5.4", optional = true, default_features = false, features = ["aarch64"] }
27+
2328
[dev-dependencies]
2429
cipher = { version = "0.4.2", features = ["dev"] }
2530
hex-literal = "0.3"

‎aes/src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@
120120
)]
121121
#![cfg_attr(docsrs, feature(doc_cfg))]
122122
#![warn(missing_docs, rust_2018_idioms)]
123-
#![cfg_attr(
124-
all(aes_armv8, target_arch = "aarch64"),
125-
feature(stdsimd, aarch64_target_feature)
126-
)]
123+
#![cfg_attr(all(aes_armv8, target_arch = "aarch64"), feature(stdsimd))]
127124

128125
#[cfg(feature = "hazmat")]
129126
pub mod hazmat;

0 commit comments

Comments
 (0)
Please sign in to comment.