#tor #download #arti #async #networking #http-client

tor-dirclient

Downloads specific Tor network directory objects over the Tor network

29 releases (15 breaking)

new 0.17.0 Apr 2, 2024
0.14.0 Mar 4, 2024
0.13.0 Feb 5, 2024
0.11.0 Dec 4, 2023
0.0.0 Jun 24, 2021

#1609 in Network programming

Download history 180/week @ 2023-12-12 168/week @ 2023-12-19 134/week @ 2023-12-26 81/week @ 2024-01-02 395/week @ 2024-01-09 389/week @ 2024-01-16 132/week @ 2024-01-23 144/week @ 2024-01-30 226/week @ 2024-02-06 171/week @ 2024-02-13 162/week @ 2024-02-20 591/week @ 2024-02-27 1912/week @ 2024-03-05 912/week @ 2024-03-12 1204/week @ 2024-03-19 901/week @ 2024-03-26

5,129 downloads per month
Used in 17 crates (3 directly)

MIT/Apache

2.5MB
41K 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–42MB
~656K SLoC