Repository navigation
Closed
Labels
Description
Goal
Rename the crate torrust-tracker-contrib-bencode to torrust-bencode, and migrate it from
the tracker workspace (contrib/bencode) back into torrust/torrust-bittorrent
(packages/bencode) replacing the legacy copy there.
Background
The contrib/bencode package is a pure bencode encode/decode library with no tracker-specific
logic:
- No tracker dependencies: its only runtime dependency is
thiserror. - Separate license: Apache-2.0 (tracker is AGPL-3.0-only).
- Already published on crates.io as
torrust-tracker-contrib-bencode. - Only one internal consumer:
packages/http-protocol— after extraction the dependency
becomes a normal crates.io dep. contrib/is the wrong home: signals transient community code; this crate is ready to graduate.- Destination confirmed in EPIC Overhaul: Packages #1669:
torrust/torrust-bittorrent→packages/bencode, replacing the older lineage there.
Scope
In Scope
- Rename crate
nameincontrib/bencode/Cargo.tomltotorrust-bencode. - Update
repositoryURL to point totorrust/torrust-bittorrent. - Copy crate source (clean copy, no cross-repo history transplant) to
packages/bencodeintorrust/torrust-bittorrent, replacing the legacy copy. - Ensure CI passes in the destination repository.
- Publish
torrust-bencodefrom the destination repository (keeping the same version as the currenttorrust-tracker-contrib-bencoderelease). - Update
packages/http-protocol/Cargo.toml: replace path dep with publishedtorrust-bencode. - Remove
contrib/bencode/from the tracker workspace (members+ workspace dep entry). - Delete
contrib/bencode/directory from the tracker repo. - Update
packages/AGENTS.md,AGENTS.mdPackage Catalog, anddocs/packages.md. - Handle old crates.io name
torrust-tracker-contrib-bencode: yank all versions with a pointer totorrust-bencode. - Update EPIC Overhaul: Packages #1669 Active Subissues table.
Out of Scope
- Changes to the crate's API or behaviour.
- Updating other downstream repositories (e.g.
torrust-index). - Extracting other
bittorrent-*orcontrib/crates.
Implementation Plan
| ID | Task |
|---|---|
| T1 | Rename name in contrib/bencode/Cargo.toml to torrust-bencode |
| T2 | Update repository URL and crate metadata to point to torrust/torrust-bittorrent |
| T3 | Confirm destination workspace migration path (packages/bencode target) |
| T4 | Copy crate source into torrust/torrust-bittorrent as a clean copy |
| T5 | Adjust CI in destination repository as needed |
| T6 | Publish torrust-bencode from destination repository |
| T7 | Update packages/http-protocol/Cargo.toml: replace path dep with published torrust-bencode |
| T8 | Remove contrib/bencode/ from tracker workspace (members + workspace dep in Cargo.toml) |
| T9 | Delete contrib/bencode/ directory from the tracker repo |
| T10 | Update packages/AGENTS.md, AGENTS.md, docs/packages.md, and README references |
| T11 | Run cargo build --workspace, cargo test --workspace, linter all |
| T12 | Yank torrust-tracker-contrib-bencode on crates.io with notice pointing to torrust-bencode |
| T13 | Update EPIC #1669 Package Inventory and Desired Package State tables |
References
- Parent EPIC: Overhaul: Packages #1669 — Overhaul: Packages
- Local spec:
docs/issues/open/ - Destination repo: https://github.com/torrust/torrust-bittorrent
Activity
feat(bencode): import torrust-tracker-contrib-bencode v3.0.0 changes
docs(issues): add issue specification for #82
Merge #84: feat(bencode): import torrust-tracker-contrib-bencode v3.0…
chore(container): remove contrib/bencode from Containerfile (T8)
fix: address Copilot review comments on PR torrust#1883
docs(packages): open SI-16 #1881 migrate contrib/bencode to torrust-b…
refactor(http-protocol): replace path dep with published torrust-benc…
chore: update Cargo.lock after switching to torrust-bencode 3.0.0
chore(packages): remove contrib/bencode and update references (T8-T10)
docs(packages): update EPIC #1669 and ISSUE spec after SI-16 completi…
Merge torrust#1883: SI-16 torrust#1881: Migrate `contrib/bencode` to …
chore(issues): archive closed torrust#1881 SI-16 bencode spec; update…
Merge #1886: chore(issues): maintain issue specs — archive closed, pr…