# Cross-compilation configuration for targets that need OpenSSL
# hf-hub (used by the tract-onnx embedding backend to fetch model files)
# depends on ureq with native-tls, which requires openssl-sys at build time.
# openssl-sys is a BUILD dependency, so it needs HOST OpenSSL, not TARGET.
# The cross container (x86_64) needs libssl-dev for the host architecture.

[target.x86_64-unknown-linux-musl]
pre-build = [
    "apt-get update && apt-get install --assume-yes libssl-dev pkg-config"
]

[target.aarch64-unknown-linux-musl]
pre-build = [
    "apt-get update && apt-get install --assume-yes libssl-dev pkg-config"
]

[target.x86_64-unknown-freebsd]
pre-build = [
    "apt-get update && apt-get install --assume-yes libssl-dev pkg-config"
]
