Cross-Compilation Guide
Overview
Using cargo-zigbuild (Recommended)
Install Zig
Install cargo-zigbuild
Cross-Compile
Why zigbuild?
Using Docker (Alternative)
Using cross (Alternative)
Testing the Binary
Check Binary Type
Test on VM
Manual Upload
Build Script
Troubleshooting
Missing Target
Zig Not Found
glibc Version Mismatch
Linking Errors
CI/CD Integration
GitHub Actions
Supported Targets
Target
Architecture
Notes
Building for ARM64
Static Linking (musl)
Last updated
Was this helpful?