[build.env]
passthrough = [
    "WARPDRIVE_VERSION",
]

# Workaround for openssl-sys Docker cache issues - use system OpenSSL
[target.x86_64-unknown-linux-gnu.env]
PKG_CONFIG_ALLOW_CROSS = "1"
OPENSSL_NO_VENDOR = "1"

[target.aarch64-unknown-linux-gnu.env]
PKG_CONFIG_ALLOW_CROSS = "1"
OPENSSL_NO_VENDOR = "1"

[target.x86_64-unknown-linux-musl.env]
PKG_CONFIG_ALLOW_CROSS = "1"
OPENSSL_NO_VENDOR = "1"
OPENSSL_STATIC = "1"

[target.aarch64-unknown-linux-musl.env]
PKG_CONFIG_ALLOW_CROSS = "1"
OPENSSL_NO_VENDOR = "1"
OPENSSL_STATIC = "1"

[target.x86_64-unknown-freebsd.env]
PKG_CONFIG_ALLOW_CROSS = "1"
OPENSSL_NO_VENDOR = "1"
