aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/parse/rules.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: Abolish ParseRouterStatus and make several things not pubIan Jackson2025-08-261-1/+1
| | | | | | | The methods in ParseRouterStatus can now be inherent. This starts a cascade of unused stuff, and stuff which doesn't need to be pub any more.
* Fix incorrect doc comment.Wesley Aptekar-Cassels2024-10-091-1/+2
| | | | | | Looks like a copy/paste error. Co-authored-by: Micah Elizabeth Scott <[email protected]>
* netdoc: Rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.Gabriela Moldovan2023-05-101-1/+1
| | | | | | | | | | | `ParseErrorSource` was originally meant to represent a parsing error, this enum has since gained some variants that aren't really parsing related (`Signature`, `CertSignature`, `UntimelyDescriptor`). Since this error type is now used for general-purpose netdoc errors, let's rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`. Signed-off-by: Gabriela Moldovan <[email protected]>
* Elide a bunch of lifetimes.Nick Mathewson2023-01-271-4/+4
| | | | | Clippy now warns about these; I'm not sure how these warnings snuck up on us.
* Refactor tor_netdoc::ErrorNick Mathewson2022-02-141-9/+17
| | | | | | | | | | | | | | | This error type doesn't impement HasKind, since the kind will depend on context. However, the existing implementation was pretty messy and inconsistent: Some errors had positions, some didn't. Some took messages as str, some as String. Some had internal errors that were somewhat orthogonal to their actual types. This commit refactors tor_netdoc::Error to use a ParseErrorKind, and adds a set of convenience functions to add positions and messages to the errors that need them.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+206
This will cause some pain for now, but now is really the best time to do this kind of thing.