37 releases (24 breaking)

0.24.0 Oct 31, 2024
0.22.0 Sep 3, 2024
0.20.0 Jun 27, 2024
0.16.0 Mar 4, 2024
0.0.0 Jun 24, 2021

#944 in Network programming

Download history 1606/week @ 2024-07-30 1116/week @ 2024-08-06 885/week @ 2024-08-13 1541/week @ 2024-08-20 1273/week @ 2024-08-27 1950/week @ 2024-09-03 1137/week @ 2024-09-10 1164/week @ 2024-09-17 1757/week @ 2024-09-24 1339/week @ 2024-10-01 778/week @ 2024-10-08 912/week @ 2024-10-15 1243/week @ 2024-10-22 1766/week @ 2024-10-29 1420/week @ 2024-11-05 1609/week @ 2024-11-12

6,263 downloads per month
Used in 34 crates (8 directly)

MIT/Apache and maybe LGPL-3.0-only

5MB
74K SLoC

tor-circmgr

circuits through the Tor network on demand.

Overview

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

In Tor, a circuit is an encrypted multi-hop tunnel over multiple relays. This crate's purpose, long-term, is to manage a set of circuits for a client. It should construct circuits in response to a client's needs, and preemptively construct circuits so as to anticipate those needs. If a client request can be satisfied with an existing circuit, it should return that circuit instead of constructing a new one.

Compile-time features

  • specific-relay: Support for connecting to a relay via specifically provided connection instructions, rather than using information from a Tor network directory.

  • full: Enable all features above.

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.

  • 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

~22–35MB
~526K SLoC