34 releases (18 breaking)

0.22.0 Sep 3, 2024
0.20.0 Jun 27, 2024
0.12.1 Mar 4, 2024
0.10.0 Dec 4, 2023
0.0.0 Jun 24, 2021

#826 in Network programming

Download history 834/week @ 2024-05-21 545/week @ 2024-05-28 465/week @ 2024-06-04 1032/week @ 2024-06-11 1266/week @ 2024-06-18 1140/week @ 2024-06-25 1240/week @ 2024-07-02 231/week @ 2024-07-09 780/week @ 2024-07-16 846/week @ 2024-07-23 1585/week @ 2024-07-30 1144/week @ 2024-08-06 911/week @ 2024-08-13 1560/week @ 2024-08-20 1320/week @ 2024-08-27 1912/week @ 2024-09-03

5,801 downloads per month
Used in 37 crates (12 directly)

MIT/Apache

2MB
21K SLoC

tor-netdir

Represents a clients'-eye view of the Tor network.

Overview

The tor-netdir crate wraps objects from tor-netdoc, and combines them to provide a unified view of the relays on the network. It is responsible for representing a client's knowledge of the network's state and who is on it.

This crate is part of Arti, a project to implement Tor in Rust. Its purpose is to expose an abstract view of a Tor network and the relays in it, so that higher-level crates don't need to know about the particular documents that describe the network and its properties.

There are two intended users for this crate. First, producers like tor-dirmgr create NetDir objects fill them with information from the Tor network directory. Later, consumers like tor-circmgr use NetDirs to select relays for random paths through the Tor network.

Limitations

Only modern consensus methods and microdescriptor consensuses are supported.

License: MIT OR Apache-2.0

Dependencies

~18–33MB
~452K SLoC