rt-api-rtorrent is a library facade, not a daemon and not an independently
deployable HTTP server. The public entry points are:
use rt_api_rtorrent::{execute_xml_with_token, AppState};
let response = execute_xml_with_token(&state, xml_request, Some(token)).await;AppState::with_engine attaches a live TorrentNG engine. with_tokens enables
the library-boundary credential check; configured states must use
execute_xml_with_token. The no-token execute_xml helper is reserved for
local embedding and states with no configured credentials.
The torrentngd TorrentNG client does not mount this facade as an XML-RPC HTTP
route. That is intentional: exposing the library helper directly would omit a
server-owned bind address, authentication middleware, request/body limits,
connection limits, timeout policy, and shutdown ownership. A consumer that
needs rTorrent XML-RPC over HTTP must supply a separate adapter that enforces
those controls, or use the compatible-client WebUI/API service.
The public library contract is tested as an external crate consumer in
crates/rt-api-rtorrent/tests/library_entry_point.rs, including credential
enforcement. This closes the documentation/test ambiguity without claiming an
HTTP deployment surface that does not exist.
The facade also rejects path-based loads at the library boundary. Embedded raw metainfo and magnets are supported. Pure-v2 magnets use the native engine's BEP 9 metadata exchange and BEP 52 piece-layer verification before promotion; complete pure-v2 metainfo then uses the v2 recheck, TCP/uTP peer transfer, and tracker lifecycle. See API.md for the bounded protocol limits and qualification boundary.