summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/util
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: move PeekableIterator to util.rsIan Jackson2023-02-151-24/+3
| | | | We're going to want this a bit more widely.
* batching_split_before: Whitespace error fixIan Jackson2023-02-131-1/+1
|
* batching_split_before: Better xref for doc hiddenIan Jackson2023-02-131-0/+7
| | | | And another UNSTABLE warning.
* batching_split_before: Clarify API sequential restrictionIan Jackson2023-02-131-4/+4
|
* batching_split_before: Fix and clarify Batches/LendingIterator docIan Jackson2023-02-131-2/+4
|
* batching_split_before: Introduce unit token typesIan Jackson2023-02-131-4/+18
| | | | And explain why we're not using booleans.
* batching_split_before: Expand on the remaining use of "meta-iterator"Ian Jackson2023-02-131-1/+2
|
* batching_split_before: Fix link to BatchesWithHeader::subsequentIan Jackson2023-02-131-1/+1
|
* batching_split_before: Provide description for BatchesWithHeaderIan Jackson2023-02-131-0/+10
|
* batching_split_before: Document generics on our non-private typesIan Jackson2023-02-131-0/+9
|
* batching_split_before: Rename "prefix" to "header"Ian Jackson2023-02-131-23/+23
| | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1016#note_2877759 "_prefixed" becomes "_with_header". That mirrors the returned struct which is nice.
* batching_split_before: Rename "start" to "batch-starting"Ian Jackson2023-02-131-27/+27
| | | | | Roughly as per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1016#note_2877822
* batching_split_before: Remove false assertions about batch contentsIan Jackson2023-02-131-4/+0
|
* batching_split_before: Clarify heading of BatchesWithPrefixIan Jackson2023-02-131-1/+1
|
* batching_split_before: docs improvements.Nick Mathewson2023-02-131-4/+8
|
* tor-netdoc: Provide new batching_split_beforeIan Jackson2023-02-101-0/+395
| | | | | | | | | | | | There will be two call sites to demonstrate it. Eventually maybe this will want to be in tor-basic-utils, since it doesn't depend on any of the tor-netdoc types. But it would be sensible to wait until the situation with PeekableIterator and Itertools is improved. For now we make this #[doc(hidden)] to avoid it becoming part of our stable API.
* Allow clippy::unchecked_duration_subtraction in testsNick Mathewson2023-01-272-0/+2
| | | | | This panics on error, and we're fine with a panic on misbehavior in tests.
* test lint blocks: Add many many automaticallyIan Jackson2022-12-122-0/+17
| | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
* Tests for tor_netdoc::util::internNick Mathewson2022-06-011-0/+33
|
* Add a more generic implementation of intern-by-refNick Mathewson2022-03-111-3/+11
|
* netdoc: Make versions smaller in GenericRouterStatusNick Mathewson2022-03-111-3/+19
| | | | | | When the version is a Tor version, we can just parse it; otherwise, we can intern it. This shrinks GenericRouterStatus and avoids a lot of extra help allocations.
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-0/+2
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-272-0/+177
This will cause some pain for now, but now is really the best time to do this kind of thing.