搜索

PythonReactSEOPDF
GitHub Skill

build

Build gateway for different targets (macOS, Linux aarch64, Raspberry Pi). Use when building the Rust application for local development or cross-compilation.

egill☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

/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

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!