aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-memquota/src/if_enabled.rs
Commit message (Collapse)AuthorAgeFilesLines
* memquota: Extract HasMemoryCost and derive to new crate.Nick Mathewson2026-02-021-41/+0
| | | | This will help resolve some dependencies in our graph.
* tor-memquota: Make EnabledToken constructors constIan Jackson2024-10-021-2/+2
| | | | This will be convenient in some tests etc.
* tor-memquota: impl PartialEq for IfEnabled and EnabledTokenIan Jackson2024-09-041-2/+4
|
* tor-memquota: IfEnabled: Complete a thought in a commentIan Jackson2024-08-211-1/+3
| | | | | Reported at https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2351#note_3062292
* tor-memquota: Allow memory tracking to be compiled outIan Jackson2024-08-191-1/+20
| | | | | | | Now if we run doctests without the feature enabled, we test that a no-op MemoryQuotaTracker works. Those tests aren't currently run in CI, but they will be after !2350.
* tor-memquota: Introduce IfEnabled and EnabledTokenIan Jackson2024-08-191-0/+80
EnabledToken is pub because it's going to appear in public APIs.