Skip to content

Evaluate moving TslConfig from torrust-tracker-configuration into torrust-tracker-axum-server #1860

Closed

Description

@josecelano

Summary

Evaluate whether TslConfig should be moved out of torrust-tracker-configuration into torrust-tracker-axum-server, where it is its only production consumer.

Background

Issue #1856 (DEC-07) identified TslConfig as a single-consumer type: only torrust-tracker-axum-server uses it in production code (tsl.rs). It is currently defined in torrust-tracker-configuration, which makes axum-server depend on the full configuration package for a two-field struct that has no relationship to the config file schema.

The EPIC.md already flags this as a temporary coupling:

TslConfig remains the temporary tracker-specific dependency: it is a small two-field struct with no tracker-specific logic and could be moved to a generic package. Once that change lands, the package could move to the torrust- group as a generic torrust-axum-server reusable across the Torrust organisation.

Goal

Decide whether to:

  1. Move TslConfig into torrust-tracker-axum-server (removes axum-server's config dependency)
  2. Move TslConfig into a generic shared location (enables axum-server → torrust-axum-server extraction)
  3. Keep as-is (document why the gain is too small)

The output is a decision in docs/issues/open/1669-overhaul-packages/DECISIONS.md.

Acceptance Criteria

  • A decision entry is added to DECISIONS.md with the chosen approach and rationale
  • If Option 1 or 2 is chosen: TslConfig is moved, all import sites updated, and axum-server's Cargo.toml no longer depends on torrust-tracker-configuration
  • All tests pass; no new clippy warnings

Related

Activity

  1. self-assigned this
    on Jun 1, 2026
  2. linked a pull request that will close this issuedocs(epic): record TslConfig decision #1871on Jun 3, 2026
  3. added a commit that references this issue on Jun 3, 2026
  4. added 4 commits that reference this issue on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions