You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move TrackerPolicy, TORRENT_PEERS_LIMIT, and PrivateMode from torrust-tracker-configuration to torrust-tracker-primitives #1859
Move three domain primitives that are currently misplaced in the torrust-tracker-configuration package into torrust-tracker-primitives, where they semantically belong.
Background
Issue #1856 analysed the coupling of torrust-tracker-configuration and concluded (DEC-07) that the package boundary should remain unchanged — except for three types that are domain policy objects, not service configuration:
TrackerPolicy — used by tracker-core, swarm-coordination-registry, and torrent-repository-benchmarking
TORRENT_PEERS_LIMIT — used by tracker-core
v2_0_0::core::PrivateMode — used by tracker-core for authentication logic
These three types have no relationship to the config file schema, TOML deserialization, or schema versioning. Placing them in a config package creates unnecessary coupling: swarm-coordination-registry and torrent-repository-benchmarking currently depend on torrust-tracker-configuration solely because of these types.
Goal
Move TrackerPolicy, TORRENT_PEERS_LIMIT, and PrivateMode to torrust-tracker-primitives. Update all import sites across the workspace. After this change:
swarm-coordination-registry no longer depends on torrust-tracker-configuration
torrent-repository-benchmarking no longer depends on torrust-tracker-configuration
Acceptance Criteria
TrackerPolicy is defined in torrust-tracker-primitives and re-exported or removed from torrust-tracker-configuration
TORRENT_PEERS_LIMIT is defined in torrust-tracker-primitives
PrivateMode (v2_0_0::core::PrivateMode) is defined in torrust-tracker-primitives
All import sites across the workspace are updated to import from torrust-tracker-primitives
swarm-coordination-registry's Cargo.toml no longer lists torrust-tracker-configuration as a direct dependency
torrent-repository-benchmarking's Cargo.toml no longer lists torrust-tracker-configuration as a direct dependency
All tests pass (cargo test --workspace)
No new clippy warnings (cargo clippy -- -D warnings)
Activity
docs(1856): close remaining acceptance criteria and update EPIC.md (t…
docs(1669): add subissue specs for FU-1, FU-2, FU-3 from issue torrus…
Merge #1862: docs(configuration): analyse coupling, record DEC-07, ad…
fix: update stale docs and EPIC follow-up notes after torrust#1859
Merge #1865: refactor(primitives): move TrackerPolicy, TORRENT_PEERS_…
refactor(primitives): move TrackerPolicy, TORRENT_PEERS_LIMIT, and Pr…
docs(issues): [torrust#1669] sync EPIC spec with current workspace state
Merge #2441: docs(issues): [#1669] sync EPIC spec with current worksp…