summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/util.rs
Commit message (Collapse)AuthorAgeFilesLines
* netdoc: Note new feature in itertoolsNick Mathewson2023-06-261-1/+5
|
* tor-netdoc: move PeekableIterator to util.rsIan Jackson2023-02-151-0/+33
| | | | We're going to want this a bit more widely.
* tor-netdoc: Delete now-unused PauseAt typeIan Jackson2023-02-151-149/+0
|
* tor-netdoc: Replace use of PauseAt::new_pred()Ian Jackson2023-02-151-0/+1
| | | | | | | We can just make a new PauseAt, since it can take the inner peekable iterator by mutable reference. This seems to tidy the code up a bit too.
* tor-netdoc: Provide new batching_split_beforeIan Jackson2023-02-101-0/+2
| | | | | | | | | | | | 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.
* tor-netdoc: util: use super::* in testsIan Jackson2023-02-101-2/+1
| | | | Not xure how my MR to try to do this everyone missed this one.
* tor-netdoc: util: Add standard lint block to testsIan Jackson2023-02-101-0/+10
| | | | Not xure how my MR to try to do this everyone missed this one.
* tor-netdoc: Put the "routerdesc" document type behind a feature.Nick Mathewson2021-11-121-0/+1
| | | | | | | | | | Nothing in arti currently uses this document type. Eventually it will be useful for relays and for bridge clients. I've left the "SHA1 digest of a router descriptor" type available unconditinoally, however, since it does get used in a few places. Part of #125.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+151
This will cause some pain for now, but now is really the best time to do this kind of thing.