Skip to content

Commit 47d3153

Browse files
committed
fix: add Cross.toml for aarch64 cross-compilation with OpenSSL
- Add Cross.toml to install libssl-dev:arm64 for cross-compilation - Update analyzer's reqwest to use rustls-tls with default-features=false - Fixes aarch64-unknown-linux-gnu build failure
1 parent 5aa8e7f commit 47d3153

File tree

3 files changed

+14
-127
lines changed

3 files changed

+14
-127
lines changed

Cargo.lock

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

Cross.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[target.aarch64-unknown-linux-gnu]
2+
pre-build = [
3+
"dpkg --add-architecture arm64",
4+
"apt-get update && apt-get install -y libssl-dev:arm64"
5+
]
6+
7+
[target.aarch64-unknown-linux-gnu.env]
8+
passthrough = [
9+
"PKG_CONFIG_ALLOW_CROSS=1",
10+
"PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig"
11+
]

crates/analyzer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ quick-xml = { version = "0.31", features = ["serialize"] }
2121
shellexpand = "3"
2222
rustsec.workspace = true
2323
walkdir.workspace = true
24-
reqwest = { version = "0.12", features = ["blocking", "json"] }
24+
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"] }
2525
toml = "0.8"
2626

2727
# Native JS/TS linting via oxc

0 commit comments

Comments
 (0)