#tor #async #download #tor-arti

tor-dirclient

Downloads specific Tor network directory objects over the Tor network

51 releases (breaking)

Uses new Rust 2024

new 0.39.0 Feb 2, 2026
0.37.0 Dec 2, 2025
0.36.0 Oct 30, 2025
0.32.0 Jul 8, 2025
0.0.0 Jun 24, 2021

#1968 in Network programming

Download history 3190/week @ 2025-10-14 3153/week @ 2025-10-21 3655/week @ 2025-10-28 3349/week @ 2025-11-04 2649/week @ 2025-11-11 3861/week @ 2025-11-18 3717/week @ 2025-11-25 4617/week @ 2025-12-02 2454/week @ 2025-12-09 1887/week @ 2025-12-16 1585/week @ 2025-12-23 1826/week @ 2025-12-30 2218/week @ 2026-01-06 2443/week @ 2026-01-13 2997/week @ 2026-01-20 3466/week @ 2026-01-27

11,531 downloads per month
Used in 62 crates (5 directly)

MIT/Apache and maybe LGPL-3.0-only

4.5MB
72K SLoC

tor-dirclient

Implements a minimal directory client for Tor.

Overview

Tor makes its directory requests as HTTP/1.0 requests tunneled over Tor circuits. For most objects, Tor uses a one-hop tunnel. Tor also uses a few strange and ad-hoc HTTP headers to select particular functionality, such as asking for diffs, compression, or multiple documents.

This crate provides an API for downloading Tor directory resources over a Tor circuit.

This crate is part of Arti, a project to implement Tor in Rust.

Features

xz -- enable XZ compression. This can be expensive in RAM and CPU, but it saves a lot of bandwidth. (On by default.)

zstd -- enable ZSTD compression. (On by default.)

routerdesc -- Add support for downloading router descriptors.

License: MIT OR Apache-2.0

Dependencies

~38–76MB
~1M SLoC