Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
add aes rustflag in cargo config
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Oct 31, 2023
1 parent a2c8136 commit aad08af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[target.'cfg(target_arch = "x64_64")']
# Require AES-NI on x86-64 by default
rustflags = "-C target-feature=+aes"

[target.'cfg(target_arch = "aarch64")']
# TODO: Try to remove once https://github.com/paritytech/substrate/issues/11538 is resolved
# TODO: AES flag is such that we have decent performance on ARMv8, remove once `aes` crate bumps MSRV to at least
# 1.61: https://github.com/RustCrypto/block-ciphers/issues/373
rustflags = "--cfg aes_armv8"

0 comments on commit aad08af

Please sign in to comment.