| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | tor-netdoc: Add ConsensusMethod type | Ian Jackson | 2025-10-15 | 1 | -3/+46 | |
| | | ||||||
| * | tor-netdoc: Add types for hashes with their accompanying alg id | Ian Jackson | 2025-10-15 | 2 | -3/+143 | |
| | | ||||||
| * | tor-netdoc: B64: impl Clone, [ConstantTime]Eq, Display, Debug | Ian Jackson | 2025-10-15 | 1 | -0/+27 | |
| | | ||||||
| * | tor-netdoc: B64 helper type: Expose | Ian Jackson | 2025-10-15 | 3 | -4/+6 | |
| | | ||||||
| * | tor-netdoc: impl parse2 multiplicity for BTreeSet | Ian Jackson | 2025-10-15 | 3 | -3/+36 | |
| | | ||||||
| * | tor-netdoc: RouterStatus: Add `publication` argument field | Ian Jackson | 2025-10-15 | 6 | -3/+28 | |
| | | ||||||
| * | tor-netdoc: Mirror netdoc structure in RouterStatus document digests | Ian Jackson | 2025-10-15 | 4 | -6/+37 | |
| | | | | | | | | | In md consensuses the referenced document digest is in the `m` field. This seems to be to make it similar to votes. But really the function of the md desc hash in md rs entries is much more parallel to the plain desc hash in plain rs entries. The way the spec has done it means the `r` item has a needlessly different syntax. | |||||
| * | tor-netdoc: Provide doc_digest on vote routerstatus entries | Ian Jackson | 2025-10-15 | 2 | -6/+12 | |
| | | ||||||
| * | tor-netdoc: RouterStatus: Split out the `r` item's fields | Ian Jackson | 2025-10-15 | 4 | -27/+61 | |
| | | | | | | | | | | This makes the Rust structure closer to the document structure. Arguably, this makes the Rust structure worse. But: I'm really very keen on avoiding handwritten parsing and printing code. And, in the longer term, having this linkage will hopefully apply pressure to avoid further protocol complexity/variation/chaos. | |||||
| * | tor-netdoc: impl parse2 for rs::Version | Ian Jackson | 2025-10-15 | 1 | -0/+10 | |
| | | ||||||
| * | tor-netdoc: impl parse2 for RelayFlags | Ian Jackson | 2025-10-15 | 1 | -0/+13 | |
| | | ||||||
| * | tor-netdoc: split up RelayFlags parsing (fmt) | Ian Jackson | 2025-10-15 | 1 | -5/+1 | |
| | | ||||||
| * | tor-netdoc: split up RelayFlags parsing | Ian Jackson | 2025-10-15 | 1 | -14/+47 | |
| | | ||||||
| * | tor-netdoc: impl parse2 traits for RelayWeight | Ian Jackson | 2025-10-15 | 1 | -0/+25 | |
| | | ||||||
| * | tor-netdoc: split up RelayWeight parsing (fmt) | Ian Jackson | 2025-10-15 | 1 | -4/+2 | |
| | | ||||||
| * | tor-netdoc: split up RelayWeight parsing | Ian Jackson | 2025-10-15 | 1 | -2/+9 | |
| | | | | | We're going to call from_net_params from the parse2 trait impl. | |||||
| * | tor-netdoc: impl parse2 traits for protovers | Ian Jackson | 2025-10-15 | 3 | -1/+25 | |
| | | ||||||
| * | tor-netdoc: Provide convenience method for handling invalid arguments | Ian Jackson | 2025-10-15 | 2 | -0/+15 | |
| | | ||||||
| * | tor-netdoc: Introduce ArgumentNotPresent placeholder utility type | Ian Jackson | 2025-10-15 | 2 | -3/+22 | |
| | | ||||||
| * | tor-netdoc: Make Ignored part of a module | Ian Jackson | 2025-10-15 | 1 | -16/+23 | |
| | | | | | | The rest of types::misc does this. We should probably follow suit for consistency. Also we're going to want to add soemthing here. | |||||
| * | tor-netdoc: impl Default for Ignored | Ian Jackson | 2025-10-15 | 1 | -1/+1 | |
| | | | | | | This omission seems like an oversight. I thought I wanted it, but it turns out I don't - but I think it should still be there. | |||||
| * | tor-netdoc: parse2: export NetdocSigned trait | Ian Jackson | 2025-10-15 | 1 | -1/+1 | |
| | | | | | This seems to have been overlooked. | |||||
| * | tor-netdoc: Don't repr(transparent) | Ian Jackson | 2025-10-09 | 1 | -2/+0 | |
| | | | | | | We don't really need this and it raises questions, for example https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3337#note_3271871 | |||||
| * | tor-netdoc: Replace NdaSystemTimeDeprecatedSyntax with Ios8601TimeSp | Ian Jackson | 2025-10-09 | 1 | -4/+5 | |
| | | | | | | Previously we needed this separate type because Ios8601TimeSp is FromStr which prevented a correct ItemArgumentParseable impl. | |||||
| * | tor-netdoc: Expose the field in time wrappers | Ian Jackson | 2025-10-09 | 1 | -2/+4 | |
| | | ||||||
| * | tor-netdoc: impl many traits for time wrappers | Ian Jackson | 2025-10-09 | 1 | -2/+4 | |
| | | ||||||
| * | tor-netdoc: Expose Iso8601TimeNoSp and Iso8601TimeSp utility wrappers | Ian Jackson | 2025-10-09 | 3 | -3/+8 | |
| | | | | | We're going to want to change some now-public fields to use these types. | |||||
| * | tor-netdoc: parse2: Fix some slips in doc comments | Ian Jackson | 2025-10-09 | 1 | -3/+3 | |
| | | ||||||
| * | tor-netdoc: parse2: Work around MSRV unhelpful lifetime | Ian Jackson | 2025-10-09 | 1 | -2/+6 | |
| | | | | | | | | | | | 1.85.1 rejects this, because it doesn't extend the lifetime of the `format_args!`. 1.90 is fine with it. I want to keep `format!` not `String::new()` so that it's easy to change back. That means a clippy allow. Getting that to apply to the code inside the derive is tricky, so I've enabled it for the whole module. (IMO this clippy lint is pretty annoying anyway.) | |||||
| * | tor-netdoc: parse2: Actually expose new errors in crate toplevel | Ian Jackson | 2025-10-09 | 1 | -1/+1 | |
| | | ||||||
| * | tor-netdoc: parse2 tests: Test ParseError Display and Error impl | Ian Jackson | 2025-10-09 | 1 | -6/+29 | |
| | | ||||||
| * | tor-netdoc: parse2 tests: Have t_err_* return the error | Ian Jackson | 2025-10-09 | 1 | -5/+4 | |
| | | ||||||
| * | tor-netdoc: parse2 tests: Have t_err_* return the error (pre-fmt) | Ian Jackson | 2025-10-09 | 1 | -1/+6 | |
| | | ||||||
| * | tor-netdoc: parse2 tests: Check columns | Ian Jackson | 2025-10-09 | 1 | -7/+15 | |
| | | ||||||
| * | tor-netdoc: parse2 tests: Check columns (pre-fmt) | Ian Jackson | 2025-10-09 | 1 | -1/+2 | |
| | | ||||||
| * | tor-netdoc: parse2: Add column field to PaarsError and print it | Ian Jackson | 2025-10-09 | 3 | -2/+14 | |
| | | ||||||
| * | tor-netdoc: parse2: Add .column() accessor to ErrorProblem | Ian Jackson | 2025-10-09 | 2 | -1/+29 | |
| | | | | | We'll want to general way to find the error problem column. | |||||
| * | tor-netdoc: parse2: Add column field as far as ErrorProblem | Ian Jackson | 2025-10-09 | 3 | -7/+48 | |
| | | | | | | | | Provide facilities in ArgumnetStream for determining the column, and add the field to all the error types up to and including ErrorProblem. The value still needs to be propagated to ParseError, and printed there. | |||||
| * | tor-netdoc: parse2: Replace EP with AE in derive fields rest path | Ian Jackson | 2025-10-09 | 1 | -1/+2 | |
| | | ||||||
| * | tor-netdoc: parse2: Replace EP with AE in NdiDirectorySignature (fmt) | Ian Jackson | 2025-10-09 | 1 | -7/+10 | |
| | | ||||||
| * | tor-netdoc: parse2: Replace EP with AE in NdiDirectorySignature | Ian Jackson | 2025-10-09 | 1 | -4/+4 | |
| | | ||||||
| * | tor-netdoc: Abolish now-obsolete field argument to from_args (fmt) | Ian Jackson | 2025-10-09 | 4 | -29/+7 | |
| | | ||||||
| * | tor-netdoc: Abolish now-obsolete field argument to from_args | Ian Jackson | 2025-10-09 | 8 | -20/+12 | |
| | | ||||||
| * | tor-netdoc: Introduce ArgumentError (fmt) | Ian Jackson | 2025-10-09 | 1 | -3/+1 | |
| | | ||||||
| * | tor-netdoc: Introduce ArgumentError | Ian Jackson | 2025-10-09 | 10 | -33/+86 | |
| | | | | | | This will allow us to (1) move field name handling out of the argument parser method, and also (2) add columns more easily. | |||||
| * | tor-netdoc: Have .reject_extra_args return a bespoke error | Ian Jackson | 2025-10-09 | 4 | -4/+20 | |
| | | | | | | | | We're about to have some functions return ArgumentError and some ErrorProblem. We don't want to provide a conversion directly between these types, so instead introduce a new type that will be convertible to either. | |||||
| * | tor-netdoc: UnparsedItem: Provide .args() accessor | Ian Jackson | 2025-10-09 | 2 | -0/+8 | |
| | | ||||||
| * | tor-netdoc: parse2: Record previous position in ArgumentStream (fmt) | Ian Jackson | 2025-10-09 | 1 | -1/+5 | |
| | | ||||||
| * | tor-netdoc: parse2: Record previous position in ArgumentStream | Ian Jackson | 2025-10-09 | 1 | -1/+8 | |
| | | ||||||
| * | tor-netdoc: parse2: Rename methods on ArgumentStream | Ian Jackson | 2025-10-09 | 3 | -11/+16 | |
| | | ||||||
