Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

发布

本仓库通过 GitHub Actions 发布 afastorm crate 及其 derive 宏。

  1. 更新 Cargo.toml 中的 version。若 derive 宏有变更,还需更新 afastorm-derive/Cargo.toml 的版本和主 crate 对 afastorm-derive 的依赖要求。
  2. 更新 CHANGELOG.md 并运行 CI 检查。
  3. 在仓库 Actions secrets 中配置 crates.io 发布令牌 CARGO_REGISTRY_TOKEN。
  4. 创建并推送符合 v<version> 格式的 tag,例如 v0.0.1。

发布 workflow 会校验 tag 与主 crate 版本一致;若该版本尚未发布,则先发布 derive 依赖,再发布 afastorm。文档 workflow 会构建中英文 mdBook 并部署到 GitHub Pages。

最低支持 Rust 版本(MSRV)为 1.94,与 SQLx 0.9 依赖要求一致。CI 会测试 Rust 1.94 和 stable。

已发布的 crates.io 版本不可覆盖;任何 crate 变更都必须发布新版本。通过 Git/path 依赖集成的 应用发布后应切换到 crates.io 版本。AFaster 仓库使用 afastorm 的 crates.io 版本,并在首次 发布后更新 lockfile。