mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
51cc574bba
## Summary - use the native TLS backend on macOS so HTTPS requests work with Warp and custom roots from `SSL_CERT_FILE` - use Rustls on other targets so Linux cross-builds do not pull in `openssl-sys` - keep the existing proxy detection and custom certificate bundle handling ## Root cause #24178 enabled `ureq/native-tls` for all targets. On macOS this is needed for Warp because Rustls/webpki rejects part of the intercepted certificate chain with `UnsupportedSignatureAlgorithmForPublicKeyContext`. Enabling native TLS globally also adds `native-tls -> openssl-sys` to the 32-bit and big-endian Linux dependency graphs. Those cross images do not provide target OpenSSL development files, so the builds fail before tests run. The TLS provider and feature are now selected by target: macOS uses the platform verifier through native TLS, while all other targets continue to use Rustls.
26 lines
517 B
TOML
26 lines
517 B
TOML
[package]
|
|
name = "oxc_tasks_common"
|
|
version = "0.0.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
test = false
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
console = { workspace = true }
|
|
oxc_span = { workspace = true }
|
|
|
|
project-root = { workspace = true }
|
|
similar = { workspace = true, features = ["inline"] }
|
|
|
|
ureq = { workspace = true, features = ["json", "rustls"] }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
ureq = { workspace = true, features = ["native-tls"] }
|