35 releases (20 breaking)

new 0.29.0 Apr 1, 2025
0.28.0 Mar 3, 2025
0.27.0 Feb 7, 2025
0.25.0 Dec 2, 2024
0.0.0 Jun 24, 2021

#1390 in Parser implementations

Download history 2561/week @ 2024-12-09 1920/week @ 2024-12-16 767/week @ 2024-12-23 848/week @ 2024-12-30 1546/week @ 2025-01-06 1754/week @ 2025-01-13 1188/week @ 2025-01-20 1347/week @ 2025-01-27 2721/week @ 2025-02-03 1659/week @ 2025-02-10 1256/week @ 2025-02-17 1197/week @ 2025-02-24 1606/week @ 2025-03-03 1493/week @ 2025-03-10 1140/week @ 2025-03-17 877/week @ 2025-03-24

5,173 downloads per month
Used in 38 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

Dependencies

~9–20MB
~272K SLoC