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

tor-dirclient

Downloads specific Tor network directory objects over the Tor network

30 releases (16 breaking)

0.18.0 Apr 30, 2024
0.14.0 Mar 4, 2024
0.11.0 Dec 4, 2023
0.10.0 Oct 31, 2023
0.0.0 Jun 24, 2021

#1608 in Network programming

Download history 133/week @ 2024-01-22 121/week @ 2024-01-29 265/week @ 2024-02-05 158/week @ 2024-02-12 113/week @ 2024-02-19 472/week @ 2024-02-26 2000/week @ 2024-03-04 617/week @ 2024-03-11 960/week @ 2024-03-18 1452/week @ 2024-03-25 944/week @ 2024-04-01 1274/week @ 2024-04-08 240/week @ 2024-04-15 219/week @ 2024-04-22 472/week @ 2024-04-29 282/week @ 2024-05-06

1,239 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

~26–39MB
~622K SLoC