Skip to content

Resolve bittorrent-tracker-core ↔ torrust-rest-tracker-api-client layer violation #1813

Closed

Description

@josecelano

Goal

Remove the stale dev dependency from bittorrent-tracker-core on
torrust-rest-tracker-api-client. A pre-implementation audit revealed that the dependency is
declared in packages/tracker-core/Cargo.toml but is never imported or used anywhere in
src/ or tests/. The fix is a one-line Cargo.toml deletion.

Background

The coupling analysis (F-05) found:

bittorrent-tracker-core → torrust-rest-tracker-api-client [dev]

The entry was listed in [dev-dependencies] of packages/tracker-core/Cargo.toml, which
caused the coupling tool to report it as a layer violation. However, auditing
packages/tracker-core/tests/ and packages/tracker-core/src/ shows zero uses of
torrust_rest_tracker_api_client anywhere in the crate. The dependency is dead — left over
from a previous refactor.

No code movement or extraction is needed. cargo machete would also flag this as an unused
dependency.

This is subissue SI-06 of EPIC #1669 (Overhaul: Packages).

Acceptance Criteria

  • packages/tracker-core/Cargo.toml does not list torrust-rest-tracker-api-client in [dev-dependencies].
  • All bittorrent-tracker-core integration tests still compile and pass.
  • cargo build --workspace succeeds with zero errors.
  • cargo test --workspace passes with zero failures.
  • linter all exits with code 0.

Note

Pre-implementation audit confirmed the dependency is unused. The fix is a one-line deletion from [dev-dependencies].

Part of #1669 (SI-06)

Activity

  1. added a commit that references this issue on Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions