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 install | fetches the packages.json index from the GitHub ecosystem repo to match packages |
| Recursive dependencies | installing aero-web → aero-sqlite doesn't miss dependencies |
| SHA-256 verification | integrity checking |
| Idempotent | repeated installs don't error |
| Version isolation | the toolchain version binds the package index of the corresponding tag; no version mixing |
| 51 built-in packages | std / 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.