Skip to content

Commit 4849b53

Browse files
committed
fix: use ring backend for rustls to fix ARM64 cross-compilation
The default aws-lc-rs backend has assembly code (SHA3 instructions like eor3, rax1, xar, bcax) that requires ARMv8.4-a+sha3 support, which the cross-compilation toolchain doesn't provide. Switching to the ring backend resolves the cross-compilation issues for ARM64 targets.
1 parent d8bb12f commit 4849b53

File tree

2 files changed

+5
-150
lines changed

2 files changed

+5
-150
lines changed

Cargo.lock

Lines changed: 2 additions & 147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ sha2 = "0.10"
6767
# Metrics
6868
prometheus = "0.14"
6969

70-
# TLS/SSL support
71-
tokio-rustls = "0.26.0"
72-
rustls = "0.23.19"
70+
# TLS/SSL support - using ring backend for cross-compilation compatibility
71+
tokio-rustls = { version = "0.26.0", default-features = false, features = ["logging", "tls12", "ring"] }
72+
rustls = { version = "0.23.19", default-features = false, features = ["logging", "tls12", "ring"] }
7373
rustls-pemfile = "2.2"
7474
rcgen = "0.13.0"
7575

0 commit comments

Comments
 (0)