#tor-networking #tor-arti #download #async #arti #tor

tor-dirclient

Downloads specific Tor network directory objects over the Tor network

40 releases (26 breaking)

0.28.0 Mar 3, 2025
0.26.0 Jan 7, 2025
0.25.0 Dec 2, 2024
0.24.0 Oct 31, 2024
0.0.0 Jun 24, 2021

#1117 in Network programming

Download history 1986/week @ 2024-12-04 2472/week @ 2024-12-11 1617/week @ 2024-12-18 701/week @ 2024-12-25 1161/week @ 2025-01-01 1458/week @ 2025-01-08 1802/week @ 2025-01-15 1312/week @ 2025-01-22 1028/week @ 2025-01-29 3160/week @ 2025-02-05 1449/week @ 2025-02-12 1137/week @ 2025-02-19 1480/week @ 2025-02-26 1281/week @ 2025-03-05 1633/week @ 2025-03-12 965/week @ 2025-03-19

5,585 downloads per month
Used in 40 crates (4 directly)

MIT/Apache and maybe LGPL-3.0-only

3MB
48K 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


lib.rs:

Dependencies

~27–39MB
~620K SLoC