#tor #resistance #tor-arti

tor-memquota

Memory use tracking and quota utilities, used by Tor software

10 breaking releases

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.20.0 Jun 27, 2024

#61 in Memory management

Download history 1565/week @ 2024-12-13 758/week @ 2024-12-20 555/week @ 2024-12-27 1131/week @ 2025-01-03 1018/week @ 2025-01-10 1130/week @ 2025-01-17 1241/week @ 2025-01-24 815/week @ 2025-01-31 2905/week @ 2025-02-07 1120/week @ 2025-02-14 1109/week @ 2025-02-21 1118/week @ 2025-02-28 938/week @ 2025-03-07 1044/week @ 2025-03-14 742/week @ 2025-03-21 1007/week @ 2025-03-28

3,835 downloads per month
Used in 48 crates (12 directly)

MIT/Apache

1MB
16K SLoC

tor-memquota

Memory use quota, tracking and reclamation, for use in Tor DoS resistance

Compile-time features

  • memquota (default) -- Actually enable memory quota tracking. Without this feature, all the actual functionality is stubbed out. This provides a convenient way of conditionally enabling memory tracking.

  • 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.

  • testing: Additional APIs for testing, used in our whole-workspace tests.

  • 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

~12–22MB
~318K SLoC