aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/util
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: Add a couple of calls to .void_unwrap()Ian Jackson2026-07-211-3/+5
| | | | | Otherwise our MSRV compiler prints a warning, that this was an unhandled Result.
* tor-netdoc: rangemap_mutate_range: Adjust a plaintive commentIan Jackson2026-07-021-1/+1
|
* tor-netdoc: rangemap_mutate_range: New functionIan Jackson2026-07-021-0/+321
| | | | This will be used for exit port summary calculations.
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-092-0/+2
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* Move intern from tor-netdir to tor-basic-utils and make it pubNick Mathewson2025-12-031-125/+0
|
* tor_netdoc::intern: Note a future possible cleanup.Nick Mathewson2025-12-031-0/+2
|
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-063-3/+3
| | | | Run maint/add_warning
* tor-netdoc: Joined OnceLock import with other std::sync importshashcatHitman2025-04-171-2/+1
| | | | Whoops! Missed that.
* tor-netdoc: Replace OnceCell with OnceLockhashcatHitman2025-04-171-3/+3
| | | | - [`once_cell::sync::OnceCell`] has been replaced by [`std::sync::OnceLock`].
* Run maint/add_warning.Nick Mathewson2024-03-133-0/+3
|
* Run maint/add_warning to add lint block everywhereIan Jackson2023-08-233-0/+3
|
* Run maint/add_warning to actually apply new lint allowsIan Jackson2023-07-103-0/+3
|
* 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.