require aarch64 neon and aes feature by default

This commit is contained in:
Zhang Jingqiang 2025-01-05 17:24:28 +08:00
parent da611db09a
commit baddd3280a
2 changed files with 19 additions and 0 deletions

View file

@ -2,3 +2,8 @@
rustflags = [
"-C", "target-cpu=x86-64-v2",
]
[target.'cfg(target_arch = "aarch64")']
rustflags = [
"-C", "target-feature=+neon,+aes",
]

View file

@ -3,6 +3,20 @@ OpenSSL Variants
There are many forks of OpenSSL available, this doc will show you how to build with them.
# Vendored OpenSSL
You can use `--features vendored-openssl` cargo build option to always use the latest stable OpenSSL version.
It is also recommended to set the following C compile options:
- x86-64
```-march=x86-64-v2```
- aarch64
```-march=armv8-a+aes```
# Tongsuo
See [Tongsuo](https://github.com/Tongsuo-Project/Tongsuo) for more introduction.