Repository navigation
Description
Goal
Rename the Cargo crate torrust-tracker-located-error to torrust-located-error to reflect
that it is a generic, tracker-independent error decoration utility that can be used in any
Rust project (e.g., torrust-index).
Background
The located-error package (packages/located-error) provides an error decorator that
attaches source-location information to errors — a generic debugging utility with no
tracker-specific logic. Its only runtime dependency is tracing. There is nothing in the
implementation that ties it to the BitTorrent tracker.
The torrust-tracker- prefix implies a tracker-only scope that does not reflect the crate's
actual purpose. The rename:
- Makes the crate identity match its scope.
- Signals to downstream users that it is reusable outside the tracker.
- Prepares it for potential extraction to a standalone repository in a future cycle.
The current crate name torrust-tracker-located-error is published on crates.io. The
rename requires publishing the new name torrust-located-error and handling the old
published name (deprecation notice, then yank after downstream migration).
Pre-implementation review: There is an open question on whether this package should be
kept and renamed, or removed entirely. A keep-vs-delete analysis is recorded in the local
spec and will be reviewed in the draft PR before implementation starts.
This issue is a subissue of EPIC #1669 (Overhaul: Packages) — SI-10.
Scope
In Scope
- Rename the
namefield inpackages/located-error/Cargo.toml. - Update all
Cargo.tomlfiles in the workspace that reference
torrust-tracker-located-error. - Update all Rust source files using
torrust_tracker_located_error::to
torrust_located_error::. - Update prose in
packages/AGENTS.md,AGENTS.md,docs/packages.md, and
packages/located-error/README.md. - Update
.github/workflows/deployment.yaml,docs/release_process.md, and the relevant
skills under.github/skills/that reference the crate name. - Verify the workspace builds and all tests pass.
- Publish
torrust-located-erroron crates.io. - Handle the old crates.io name
torrust-tracker-located-error: deprecation notice first;
yank after downstream Torrust repositories are migrated.
Out of Scope
- Moving the crate to a separate repository (a future extraction subissue).
- Changes to the crate's API or behaviour.
Implementation Plan
| ID | Task |
|---|---|
| T1 | Rename name in packages/located-error/Cargo.toml |
| T2 | Update root Cargo.toml workspace dependency key |
| T3 | Update all 5 dependent package Cargo.toml files |
| T4 | Update Rust source use / path references |
| T5 | Update prose in packages/AGENTS.md, AGENTS.md, docs/packages.md, package README.md |
| T6 | Update .github/workflows/deployment.yaml, docs/release_process.md, related .github/skills/ |
| T7 | Run cargo build --workspace and cargo test --workspace |
| T8 | Run linter all |
| T9 | Publish torrust-located-error on crates.io |
| T10 | Add deprecation notice to torrust-tracker-located-error on crates.io |
| T11 | Migrate downstream Torrust repositories (e.g., torrust-index) |
| T12 | Yank all versions of torrust-tracker-located-error on crates.io |
| T13 | Update EPIC #1669 Package Inventory and Desired Package State tables |
Dependent packages for T3 (5 files):
packages/configuration/Cargo.tomlpackages/axum-server/Cargo.tomlpackages/http-protocol/Cargo.tomlpackages/tracker-core/Cargo.tomlpackages/tracker-client/Cargo.toml
Acceptance Criteria
-
packages/located-error/Cargo.tomldeclaresname = "torrust-located-error". - No
Cargo.tomlfile in the workspace referencestorrust-tracker-located-error. - No Rust source file uses
torrust_tracker_located_error::. -
cargo build --workspacesucceeds with zero errors. -
cargo test --workspacepasses with zero failures. -
linter allexits with code0. -
torrust-located-erroris published and visible on crates.io. -
torrust-tracker-located-errorhas a deprecation notice pointing to the new name. - Downstream Torrust repositories have been migrated.
-
torrust-tracker-located-erroris yanked on crates.io (only after downstream migration). - EPIC Overhaul: Packages #1669
Desired Package Statetable liststorrust-located-error.
Local Spec
Spec lives in the local repository and will be moved to
docs/issues/open/<issue-number>-1669-10-rename-torrust-tracker-located-error-to-torrust-located-error.md
once this issue is opened.
Related to #1669
Activity
josecelano commentedon May 21, 2026
Hi @da2ce7, you wanted to remove this package instead of renaming it but I do not know why
refactor(located-error): [torrust#1823] rename torrust-tracker-locate…
fix(ci): [torrust#1823] fix deployment order and skill snippet for to…
docs(issues): [#1823] open spec for rename torrust-tracker-located-error
docs(issues): [#1823] add keep-vs-delete analysis to located-error re…
chore(issues): update frontmatter status and spec-path in archived sp…
chore(issues): archive closed issue specs #1816, #1819, #1821, #1823 …
Merge #1825: chore(issues): archive closed issue specs #1816, #1819, #…
Merge torrust#1824: refactor(located-error): [torrust#1823] rename to…
docs(issues): [#2576] add issue specification for updating all packag…
Merge #2577: docs(issues): [#2576] add issue specification for updati…