55 releases (breaking)

Uses new Rust 2024

0.42.0 May 7, 2026
0.41.0 Mar 30, 2026
0.40.0 Mar 3, 2026
0.37.0 Dec 2, 2025
0.0.0 Jun 24, 2021

#1990 in Network programming

Download history 3041/week @ 2026-01-23 3644/week @ 2026-01-30 3284/week @ 2026-02-06 3466/week @ 2026-02-13 4247/week @ 2026-02-20 4052/week @ 2026-02-27 6491/week @ 2026-03-06 7941/week @ 2026-03-13 7576/week @ 2026-03-20 5607/week @ 2026-03-27 4962/week @ 2026-04-03 8642/week @ 2026-04-10 9598/week @ 2026-04-17 11022/week @ 2026-04-24 47679/week @ 2026-05-01 30864/week @ 2026-05-08

100,142 downloads per month
Used in 60 crates (4 directly)

MIT/Apache and maybe LGPL-3.0-only

7MB
115K 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

~55–97MB
~1.5M SLoC