#tor #diff #arti

tor-consdiff

Handle the consensus-diff format used in the Tor directory protocol

31 releases (16 breaking)

0.25.0 Dec 2, 2024
0.24.0 Oct 31, 2024
0.23.0 Sep 30, 2024
0.20.0 Jun 27, 2024
0.0.0 Jun 24, 2021

#353 in Parser implementations

Download history 1450/week @ 2024-08-23 1482/week @ 2024-08-30 1685/week @ 2024-09-06 1105/week @ 2024-09-13 1221/week @ 2024-09-20 1699/week @ 2024-09-27 1029/week @ 2024-10-04 886/week @ 2024-10-11 1095/week @ 2024-10-18 1009/week @ 2024-10-25 2195/week @ 2024-11-01 1095/week @ 2024-11-08 2403/week @ 2024-11-15 1477/week @ 2024-11-22 2366/week @ 2024-11-29 2282/week @ 2024-12-06

8,687 downloads per month
Used in 30 crates (2 directly)

MIT/Apache

120KB
2K SLoC

tor-consdiff

Restricted ed diff and patch formats for Tor.

Overview

This crate is part of Arti, a project to implement Tor in Rust. Tor uses a restricted version of the "ed-style" diff format to record the difference between a pair of consensus documents, so that clients can download only the changes since the last document they have.

This crate provides a function to apply one of these diffs to an older consensus document, to get a newer one.

TODO: Eventually, when we add relay support, we will need to generate these diffs as well as consume them.

License: MIT OR Apache-2.0


lib.rs:

Dependencies

~8–19MB
~264K SLoC