Calling & Building / Package Manager

Package Manager

Aero.toml

An Aero package is described with Aero.toml:

[package]
name = "myapp"
version = "0.1.0"
edition = "2024"

[dependencies]
aero-http = { path = "../deps/aero-http" }

Common Commands

aero new myapp          # 生成包骨架
aero install aero-web   # 从 GitHub 生态安装包
aero lock               # 生成/更新 Aero.lock
aero publish dir        # 发布库包
aero ls                 # 列出 registry 包

aero install Features (New in 1.2.0)

One-click installfetches the packages.json index from the GitHub ecosystem repo to match packages
Recursive dependenciesinstalling aero-web → aero-sqlite doesn't miss dependencies
SHA-256 verificationintegrity checking
Idempotentrepeated installs don't error
Version isolationthe toolchain version binds the package index of the corresponding tag; no version mixing
51 built-in packagesstd / net / data / crypto: aero-std, aero-tcp/aero-http/aero-web, aero-redis/aero-sqlite, aero-crypto …

Write FFI dependencies in Aero.toml with relative paths to keep them portable across machines; for example aero-sqlite bundles libsqlite3.a, so it can be installed even without a C toolchain.

Aero 文档 · 基于 Aero 1.2.0 文档整理 · MIT
SereinTeam