First publish of the unpublished workspace crates

未关闭
#2,583 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@josecelano 已经在做这个了。

开始于 2026年10月20日。

评估

这个 Issue 还没有评估数据。

描述

Blocked packages task

Subissue of EPIC #1669 (Overhaul: Packages). Blocked until its prerequisites are met (see below); opened now so the publish work is tracked.

Goal

Publish every publishable library crate of the workspace that is not yet on crates.io, one crate at a time and in dependency order, at the end of EPIC #1669. Publish the next version of the library crates already on crates.io in the same order, with the semver-major bumps they owe.

Facts (checked 2026-10-20)

  • cargo metadata --no-deps lists 32 workspace members; 22 have no publish = false.
  • On crates.io: torrust-tracker, torrust-tracker-configuration, torrust-tracker-primitives, torrust-tracker-test-helpers (all 3.0.0, owners josecelano and da2ce7). The other 18 names return 404 from the crates.io API, so nobody else has taken them.
  • Every path dependency between workspace crates has a version requirement and none points to a publish = false crate. Versioned dev-dependencies are resolved against the registry, so a crate's workspace dev-dependencies must be published before it.
  • cargo package --workspace --no-verify fails on torrust-tracker-axum-health-check-api-server because it dev-depends on itself: #2582 (P1). Without that line, all 32 members package.
  • Local test-helpers now also depends on client-lib, http-protocol, primitives and udp-protocol (its published 3.0.0 depended only on configuration), and 7 crates dev-depend on it.

Maintainer decisions (2026-10-20)

Question Decision
Tracking One tracking issue with a per-crate checklist; a crate that needs real pre-publish work gets its own sub-issue
When One crate at a time, at the end of EPIC #1669
First version of unpublished crates 0.1.0 (current value)
Root torrust-tracker Out of scope: the next tracker release publishes it, with its owed bump to 4.0.0
Version-bump PRs One small PR per crate whose version changes, right before its publish
Console client torrust-tracker-client Not published here; first publish from its own repository in the client-extraction issue
crates.io owners josecelano and da2ce7
Crates kept unpublished None beyond the ten publish = false members
cargo package failure Own sub-issue #2582
Stale publish docs Fixed here before the first publish

Prerequisites

  1. #2482 (shared test support reorganisation) closed: it can change public APIs and dev-dependencies, and add crates.
  2. #2576 (READMEs and crates.io metadata) merged: crates.io shows each version's README and metadata.
  3. EPIC #1488 (shutdown overhaul) and EPIC #1347 (package testing, test-coverage review of every package) closed.
  4. The rest of EPIC #1669's API work done.
  5. Per crate: the EPIC's Pre-publish API checklist satisfied and its pre-publish sub-issues closed.

Semver bumps owed

From #2454 (public error enums marked #[non_exhaustive]): torrust-tracker-primitives 4.0.0, torrust-tracker-configuration 4.0.0 (also Error::Infallible removed), and torrust-tracker 4.0.0 (published by the tracker release). torrust-tracker-test-helpers probably 4.0.0 after #2482, decided against its published API.

Per-crate checklist (dependency order, leaves first; normal, build and dev-dependencies)

  • L0 torrust-tracker-primitives 4.0.0
  • L0 torrust-tracker-events 0.1.0
  • L0 torrust-tracker-http-protocol 0.1.0 (blocks the client extraction)
  • L0 torrust-tracker-udp-protocol 0.1.0 (blocks the client extraction)
  • L0 torrust-tracker-rest-api-protocol 0.1.0
  • L1 torrust-tracker-configuration 4.0.0
  • L1 torrust-tracker-swarm-coordination-registry 0.1.0
  • L1 torrust-tracker-client-lib 0.1.0 (blocks the client extraction)
  • L1 torrust-tracker-rest-api-application 0.1.0
  • L1 torrust-tracker-rest-api-client 0.1.0
  • L2 torrust-tracker-axum-server 0.1.0
  • L2 torrust-tracker-test-helpers 4.0.0 (probably)
  • L3 torrust-tracker-core 0.1.0
  • L4 torrust-tracker-http-core 0.1.0
  • L4 torrust-tracker-udp-core 0.1.0
  • L5 torrust-tracker-axum-http-server 0.1.0
  • L5 torrust-tracker-udp-server 0.1.0
  • L6 torrust-tracker-rest-api-runtime-adapter 0.1.0
  • L7 torrust-tracker-axum-rest-api-server 0.1.0
  • L8 torrust-tracker-axum-health-check-api-server 0.1.0 (needs #2582)

Deferred: torrust-tracker-client (L2, client extraction). Out of scope: torrust-tracker (L9, tracker release). The spec's checklist has each crate's dependencies, dev-dependencies, notes and status, and is re-checked before the first publish.

Per-crate procedure

Follow "Publishing a Workspace Package" in docs/release_process.md (deployment-packages.yaml): dependencies published and indexed; version-bump PR if needed; cargo package -p <crate>; push releases/pkg/<crate>/v<semver> from develop; signed pkg/<crate>/v<semver> tag; add the missing owner with cargo owner --add; check crates.io and docs.rs.

Acceptance criteria

  • Every checklist crate is published at its listed version, or deferred with a recorded reason.
  • Crates were published one at a time, each after every crate it depends on or dev-depends on.
  • configuration and primitives got a semver-major bump; test-helpers the bump decided before its publish.
  • Each published crate has a signed pkg/<crate>/v<semver> tag and a successful deployment-packages.yaml run.
  • Each crates.io page shows the #2576 README and metadata, the docs.rs build succeeded, and the README's docs.rs link resolves.
  • Each newly published crate is owned by josecelano and da2ce7.
  • No crate was published before #2482, #1488 and #1347 closed and #2576 merged.
  • The publish procedure in docs/release_process.md and the release-new-version skill matches the ADR and both workflows before the first publish.

Blocks: the extraction of torrust-tracker-client to its own repository.

Specification: docs/issues/open/2583-1669-first-publish-of-workspace-crates/ISSUE.md (spec-only PR).

主要语言
Rust
星标
532
派生
56
平均合并
11 小时 20 分钟
30 天内合并 PR
282

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

torrust/torrust-tracker 的其他 Issue

查看 torrust/torrust-tracker 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。