message: Updated x86, x86_64 default features
diff: @@ -13,7 +13,12 @@ rustflags = [
  # Common ISA that is supported by modern CPUs
  # https://en.wikipedia.org/wiki/SSE4
  # Disable this line if you find "Illegal Instructions" error when running the programs
  - "-C", "target-feature=+aes,+pclmul,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2",
  + #
  + # X86 CPU feature
  + # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/src/detect/arch/x86.rs
  + #
  + # Optional CPU feature: +avx,+avx2,+rdrand,+rdseed,+sha
  + "-C", "target-feature=+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+aes,+pclmulqdq",
  ]
  [target.'cfg(target_arch = "x86")']
  @@ -25,7 +30,7 @@ rustflags = [
  # Common ISA that is supported by modern CPUs
  # https://en.wikipedia.org/wiki/SSSE3
  - "-C", "target-feature=+aes,+pclmul,+sse,+sse2,+sse3,+ssse3",
  + "-C", "target-feature=+sse,+sse2,+sse3,+ssse3,+aes,+pclmulqdq",
  ]
  [target.'cfg(target_arch = "arm")']
  @@ -34,11 +39,11 @@ rustflags = [
  # Enable this for optimization for your local CPU
  # "-C", "target-cpu=native",
  +
  + # ARM Aarch32 CPU feature
  + # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/src/detect/arch/arm.rs
  ]
  -# NOTE:
  -# Crypto: AES + PMULL + SHA1 + SHA2
  -# https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/src/detect/arch/aarch64.rs#L26
  [target.'cfg(target_arch = "aarch64")']
  rustflags = [
  # "--print", "native-static-libs",
  @@ -46,15 +51,22 @@ rustflags = [
  # Enable this for optimization for your local CPU
  # "-C", "target-cpu=native",
  - # Common ISA that is supported by modern CPUs
  + # ARM Aarch64 CPU feature
  + # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/src/detect/arch/aarch64.rs
  + #
  # sha2: SHA1 & SHA2-256 instructions
  # sha3: SHA2-512 & SHA3 instructions
  - # Optional feature: +sha3,+sm4
  + #
  + # Optional CPU feature: +sha3,+sm4
  "-C", "target-feature=+neon,+pmull,+aes,+sha2,+crc",
  ]
  # NOTE:
  # mips are commonly used in routers, so binary size is more important than speed
  +#
  +# MIPS CPU feature:
  +# https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/src/detect/arch/mips.rs
  +#
  # [target.'cfg(target_arch = "mips")']
  # rustflags = [
  # "-C", "opt-level=z",
  