summaryrefslogtreecommitdiff
path: root/crates/tor-memtrack/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename tor-memtrack to tor-memquotaIan Jackson2024-04-291-206/+0
|
* tor_memtrack: Soup up DropBomb and make into its own moduleIan Jackson2024-04-241-0/+2
| | | | | | | | And make it testable. In addition to the in-module tests, I have done an ad-hoc test, removing the .promise call from deferred_drop, and it does panic in the test cawe as desired.
* tor-memtrack: Clarify behavioural commentIan Jackson2024-04-231-1/+1
| | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2091#note_3021436
* tor-memtrack: Fix doc comment (and change capitalisation)gabi-2502024-04-231-1/+1
|
* tor-memtrack: Fix doc comment grammargabi-2502024-04-231-1/+1
|
* tor-memtrack: Clarify a doc commentgabi-2502024-04-231-2/+2
|
* tor-memtrack: Provide an error for callers to useIan Jackson2024-04-231-1/+1
|
* tor-memtrack: Comment out some false docs, with some TODOsIan Jackson2024-04-231-6/+8
|
* tor-memtrack: Remove dead code allowsIan Jackson2024-04-231-2/+0
|
* tor-memtrack: implement MemoryQuotaTrackerIan Jackson2024-04-231-0/+1
| | | | | | Includes the principal data structures and their impls. Reclamation will come in a moment.
* tor-memtrack: Provide helper drop_reentrancy moduleIan Jackson2024-04-231-0/+1
|
* tor-memtrack: Provide helper refcounting moduleIan Jackson2024-04-231-0/+1
|
* tor-memtrack: Provide Error types for use by our implsIan Jackson2024-04-231-0/+6
|
* tor-memtrack: Introduce configurationIan Jackson2024-04-231-0/+8
| | | | Nothing uses this yet.
* tor-memtrack: Provide a couple of utilitiesIan Jackson2024-04-231-0/+1
| | | | | We'll use Qty for printing amounts of memory, and .take() for convenience in a lot of places.
* tor-memtrack: Add dependencies and imports we're going to useIan Jackson2024-04-231-0/+3
| | | | Establish the principal in-crate namespace.
* memtrack docs: Minor clarifications, and IsParticipantIan Jackson2024-04-231-9/+9
| | | | | | While writing the actual code, the distinction between Participation and `dyn Participant` and Participant (the abstract concept) was a bit confusing. Rename the trait, and clarify things a little.
* memtrack docs: Wrap (whitespace changes, manual)Ian Jackson2024-04-231-28/+74
| | | | | | Use semantic newlines, not hugely long one-line paragraphs. (I think this file must originally have been a pad or a gitlab comment.)
* memtrack docs: Move overview to lib.rsIan Jackson2024-04-231-0/+92
|
* tor-memtrack: Introduce new crate (empty)Ian Jackson2024-04-231-0/+45
Put it just above tor-rpcbase, which maybe it would want to use for metrics export via RPC? For now we have some dead code `#[allow]`s.