Skip to content

Commit

Permalink
require aarch64 neon and aes feature by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed Jan 5, 2025
1 parent da611db commit baddd32
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
rustflags = [
"-C", "target-cpu=x86-64-v2",
]

[target.'cfg(target_arch = "aarch64")']
rustflags = [
"-C", "target-feature=+neon,+aes",
]
14 changes: 14 additions & 0 deletions doc/openssl-variants.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit baddd32

Please sign in to comment.