# Cross-compilation configuration for GDELT CLI
# Used by `cross` (cargo install cross) for building cross-platform binaries
#
# Reference: https://github.com/cross-rs/cross

[build.env]
passthrough = [
    "RUST_BACKTRACE",
    "RUST_LOG",
]

# Linux x86_64 - Uses default cross image
[target.x86_64-unknown-linux-gnu]
# Uses cross default image

# Linux ARM64
[target.aarch64-unknown-linux-gnu]
# Uses cross default image

# macOS x86_64 (Intel)
# Note: Cross-compiling for macOS from Linux requires additional setup
# Consider using osxcross or building on actual macOS hardware
[target.x86_64-apple-darwin]
# Requires osxcross toolchain
# See: https://github.com/AlysCai/osxcross

# macOS ARM64 (Apple Silicon)
[target.aarch64-apple-darwin]
# Requires osxcross toolchain with arm64 support

# Windows x86_64
[target.x86_64-pc-windows-gnu]
# Uses cross default image with mingw-w64
