summaryrefslogtreecommitdiff
path: root/tor-netdoc/src/util.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix new(?) rustdoc warningsNick Mathewson2021-06-161-2/+2
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-181-5/+5
| | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are.
* Make RouterStatus a trait and Consensus into a generic type.Nick Mathewson2021-03-301-0/+9
| | | | This breaks surprisingly little.
* Netdoc: Add support for interned PortPolicy objects in MicroDescsNick Mathewson2021-03-291-0/+1
| | | | In C tor, this saved a whole lot of RAM.
* netdoc: split off string utilsNick Mathewson2020-11-141-55/+2
|
* Document most private items in tor-netdoc.Nick Mathewson2020-10-091-1/+7
|
* Netdoc: allow parsing multiple routerdescs from a string.Nick Mathewson2020-06-091-0/+1
|
* netdoc: fix behavior when using a fancy closure with PauseAt.Nick Mathewson2020-06-061-14/+54
| | | | | | | | | Previously, every call to peek() or next() would call self.pred(). But this would run us into trouble if we were using a closure that had mutable state, since it would stop us from checking for things like "the third occurrence of the foo token". Now we store the value of self.pred(self.peek()).
* Remove the Pausable trait as busted.Nick Mathewson2020-06-031-38/+11
| | | | | | We need to have the Peekable be long-lived, so we can't consume it. We _could_ create a second Peekable, which is apparently what we have been doing, but that breaks down when we try to do it again.
* netdoc: Refactor iteration over tokens.Nick Mathewson2020-06-031-5/+0
| | | | | I want the "peekable iterator" type to be passed around a lot, and it needs to have some way to get at the string that's used with it.
* tor-netdoc: add a peek() method to util::Pausable.Nick Mathewson2020-05-161-0/+19
|
* netdoc: remove the Item::off field as redundantNick Mathewson2020-05-131-0/+55
| | | | | Now that we are okay with using slice offset pointer math, we can remove the 'off' field from Item entirely.
* netdoc and version docsNick Mathewson2020-05-081-4/+10
|
* Fresh git repository for work on "arti"Nick Mathewson2020-05-071-0/+99
Arti is a rust tor implementation. It's project I've been working on for a few months now, in weekends and in spare time. It doesn't speak the tor protocol yet, and it doesn't connect to the network at all. It needs much more documentation and testing, but I'm just about ready to show it to others. See the README.md for a description of what is there and what isn't.