#tor #download #arti #async

fedimint-tor-dirmgr

Bootstrap and update an accurate Tor network directory

1 unstable release

0.20.0 Jul 30, 2024

#54 in #arti

Download history 380/week @ 2024-10-29 533/week @ 2024-11-05 451/week @ 2024-11-12 543/week @ 2024-11-19 321/week @ 2024-11-26 283/week @ 2024-12-03 567/week @ 2024-12-10 340/week @ 2024-12-17 29/week @ 2024-12-24 245/week @ 2024-12-31 317/week @ 2025-01-07 607/week @ 2025-01-14 168/week @ 2025-01-21 197/week @ 2025-01-28 384/week @ 2025-02-04 244/week @ 2025-02-11

1,021 downloads per month
Used in 7 crates (via fedimint-arti-client)

MIT/Apache

5MB
82K SLoC

tor-dirmgr

Code to fetch, store, and update Tor directory information.

Overview

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

In its current design, Tor requires a set of up-to-date authenticated directory documents in order to build multi-hop anonymized circuits through the network.

This directory manager crate is responsible for figuring out which directory information we lack, downloading what we're missing, and keeping a cache of it on disk.

Compile-time features

  • mmap (default) -- Use memory mapping to reduce the memory load for reading large directory objects from disk.

  • routerdesc -- (Incomplete) support for downloading and storing router descriptors.

  • compression (default) -- Build support for downloading compressed documents. Requires a C compiler.

  • bridge-client: Provide APIs used to fetch and use bridge information.

  • full -- Enable all features above.

Non-additive features

  • static -- Try to link with a static copy of sqlite3.

Experimental and unstable features

Note that the APIs enabled by these features are NOT covered by semantic versioning[^1] guarantees: we might break them or remove them between patch versions.

  • experimental-api: Add additional non-stable APIs to our public interfaces.

  • dirfilter: enable an experimental mechanism to modify incoming directory information before it is used.

  • experimental: Enable all the above experimental features.

[^1]: Remember, semantic versioning is what makes various cargo features work reliably. To be explicit: if you want cargo update to only make safe changes, then you cannot enable these features.

License: MIT OR Apache-2.0

Dependencies

~59MB
~1M SLoC