First publish of the unpublished workspace crates

Open
#2,583 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@josecelano is already working on this.

Since Oct 20, 2026.

Assessment

This issue has not been assessed yet.

Description

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).

Dominant language
Rust
Stars
532
Forks
56
Avg merge
11h 20m
Merged PRs (30d)
282

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from torrust/torrust-tracker

All issues in torrust/torrust-tracker

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.