build
Build gateway for different targets (macOS, Linux aarch64, Raspberry Pi). Use when building the Rust application for local development or cross-compilation.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
/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
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!