| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-memquota: Use a const to hoist a panic to compile-time | Ian Jackson | 2024-09-10 | 1 | -1/+3 |
| | | |||||
| * | Fix typo in tor_memquota::ConfigBuilder doc | Ian Jackson | 2024-09-04 | 1 | -1/+1 |
| | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2374#note_3070500 | ||||
| * | tor-memquota: Unstable cargo feature for exposing info for testing | Ian Jackson | 2024-09-04 | 1 | -2/+16 |
| | | |||||
| * | tor-memquota: Rework optionality configuration | Ian Jackson | 2024-09-04 | 1 | -22/+78 |
| | | | | | | | | | | | | | | | | | | | Allow a `Config` to represent "this is supposed to be disabled". This involves wrapping the actual built configuration in an IfEnabled. We treat max = usize::MAX, or max being unspecified, as "disable". We can now reporting an error during config building if max is set but we're compiling the feature out. Conversely, we can now make `MemoryQuotaTracker::new()` unconditional, since enabled confiogurations are uninhabited when the feature is compiled out. We change how we derive the setters, deriving them from the Builder. I chose to abolish the use of derive_builder. See the new comment on ConfigBuilder. | ||||
| * | tor-memquota: Add unit tests for config handling | Ian Jackson | 2024-09-04 | 1 | -0/+56 |
| | | | | | | We're about to change the config behaviour; adding these tests first allows us to demonstrate the changes. | ||||
| * | Change deftly syntax to post 0.12.1 version | Ian Jackson | 2024-06-17 | 1 | -1/+1 |
| | | | | | | | | | | | | * Change `pub` to `export` * Change the `=` in define to `:` * Change `pub_template_semver_check` to `template_export_semver_check` Right now, 0.12.1 supports both syntaxes. I have verified this branch also compiles with https://gitlab.torproject.org/Diziet/rust-derive-deftly/-/merge_requests/402 ee171ffaf56d7dcb7d75584054921153fe19b222 | ||||
| * | Rename tor-memtrack to tor-memquota | Ian Jackson | 2024-04-29 | 1 | -0/+103 |
