Commit 988678b
committed
Merge #1887: refactor: migrate peer-id to published torrust-peer-id 0.1.0
f0f651f fix: remove peer-id references from Containerfile (Jose Celano)
f4cdfac refactor: restore deprecated peer_id module for backwards compatibility (Jose Celano)
dac713b docs: link PR #1887 in issue #1884 spec (Jose Celano)
96f1359 docs: update EPIC #1669 tables reflecting peer-id extraction (Jose Celano)
091e0ba docs: mark issue #1884 as implemented, update acceptance criteria (Jose Celano)
2d63158 refactor: migrate peer-id to published torrust-peer-id 0.1.0 (Jose Celano)
d48ad9a docs(tracker-core): update issue #1884 spec with license decision (Jose Celano)
Pull request description:
Migrate the `bittorrent-peer-id` path dependency to the published `torrust-peer-id` 0.1.0 crate.
## Summary
- Replaced `bittorrent-peer-id` path deps in `http-protocol`, `primitives`, and `udp-protocol` with `torrust-peer-id = "0.1.0"` from crates.io
- Renamed all Rust `use bittorrent_peer_id` statements to `use torrust_peer_id`
- Removed `packages/primitives/src/peer_id.rs` thin re-export module; `lib.rs` now directly re-exports from `torrust_peer_id`
- Deleted the entire `packages/peer-id/` directory
- Updated `AGENTS.md` package catalog
- Updated issue spec #1884 and EPIC #1669 tables
## Why
The `torrust-peer-id` crate was extracted to `torrust/torrust-bittorrent`, published under Apache-2.0 (matching the upstream `aquatic_peer_id` license). It has zero workspace dependencies and was the first in the `bittorrent-*` extraction sequence (EPIC #1669).
## Verification
- [x] `cargo check --workspace` — pass
- [x] `cargo test --tests --workspace --all-targets --all-features` — pass
- [x] `cargo test --doc --workspace` — pass
- [x] `linter all` — pass
- [x] `cargo machete --with-metadata` — pass
- [x] Pre-push hook (format, check, doc, test) — pass
Closes #1884
ACKs for top commit:
josecelano:
ACK f0f651f
Tree-SHA512: e479c4bbee166246d3f061b409fb1b244a5ac32521f8cbb2038b96a5daa973076a20badf9033419cafaf49d6ebba8d473b9c90dea52d933c71f830f1fe9162d221 files changed
Lines changed: 110 additions & 1320 deletions
File tree
- docs/issues/open
- 1669-overhaul-packages
- packages
- http-protocol
- src
- v1
- requests
- responses
- peer-id
- src
- primitives
- src
- udp-protocol
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| |||
170 | 168 | | |
171 | 169 | | |
172 | 170 | | |
173 | | - | |
174 | 171 | | |
175 | 172 | | |
176 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 97 | | |
104 | 98 | | |
105 | 99 | | |
| |||
233 | 227 | | |
234 | 228 | | |
235 | 229 | | |
236 | | - | |
| 230 | + | |
237 | 231 | | |
238 | 232 | | |
239 | 233 | | |
| |||
542 | 536 | | |
543 | 537 | | |
544 | 538 | | |
545 | | - | |
| 539 | + | |
546 | 540 | | |
547 | 541 | | |
548 | 542 | | |
| |||
574 | 568 | | |
575 | 569 | | |
576 | 570 | | |
577 | | - | |
| 571 | + | |
578 | 572 | | |
579 | 573 | | |
580 | 574 | | |
| |||
0 commit comments