#tor #arti #download #async

tor-dirclient

Downloads specific Tor network directory objects over the Tor network

25 releases (11 breaking)

new 0.11.0 Dec 4, 2023
0.10.0 Oct 31, 2023
0.9.1 Oct 2, 2023
0.7.2 Jun 30, 2023
0.0.0 Jun 24, 2021

#13 in #download

Download history 226/week @ 2023-08-17 232/week @ 2023-08-24 284/week @ 2023-08-31 250/week @ 2023-09-07 220/week @ 2023-09-14 122/week @ 2023-09-21 259/week @ 2023-09-28 182/week @ 2023-10-05 206/week @ 2023-10-12 301/week @ 2023-10-19 396/week @ 2023-10-26 266/week @ 2023-11-02 417/week @ 2023-11-09 456/week @ 2023-11-16 448/week @ 2023-11-23 361/week @ 2023-11-30

1,718 downloads per month
Used in 16 crates (3 directly)

MIT/Apache

2.5MB
39K 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

~24–35MB
~547K SLoC