Skip to content

Decide and document the runtime boundary for libtortillas #237

Description

@artrixdotdev

Problem

libtortillas is tightly coupled to Tokio, Kameo, Reqwest, uTP, and async runtime primitives. That can be acceptable, but the frontend contract should explicitly say whether this is a Tokio-only core or whether runtime/network/storage injection is a goal.

Relevant code/dependencies:

  • crates/libtortillas/Cargo.toml
  • crates/libtortillas/src/engine/mod.rs examples use #[tokio::main]
  • Direct reqwest::get calls in engine/tracker code

Acceptance criteria

  • The crate docs explicitly state the runtime requirement.
  • If Tokio-only is the decision, frontend integration docs explain how the TUI should run it.
  • If injection is desired, follow-up issues are created for HTTP client, clock, network listener, and storage injection.
  • The public facade does not accidentally promise runtime independence it cannot support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentationlibtortillasChanges in the libtortillas cratemed prioMedium PriorityrustPull requests that update rust codetui-foundationWork needed before building the Tortillas TUI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions