build
Build gateway for different targets (macOS, Linux aarch64, Raspberry Pi). Use when building the Rust application for local development or cross-compilation.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
/build
Build gateway for different targets.
Local (macOS)
cargo build --release
Cross-compile for Linux aarch64 (Netto server)
Option 1: cargo-zigbuild (Recommended)
Install once:
cargo install cargo-zigbuild
brew install zig
Build:
cargo zigbuild --release --target aarch64-unknown-linux-gnu
Binary at: target/aarch64-unknown-linux-gnu/release/gateway
Option 2: Remote build
Build directly on the target server:
rsync -avz --exclude target --exclude .git ./ avero@HOST:~/gateway/
ssh avero@HOST "source ~/.cargo/env && cd ~/gateway && cargo build --release"
Targets
| Target | Architecture | OS |
|---|---|---|
| default | arm64 | macOS |
| aarch64-unknown-linux-gnu | aarch64 | Linux |
| x86_64-unknown-linux-gnu | x86_64 | Linux |
Test before deploy
cargo test
cargo clippy
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!