| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | tor-netdoc: Move ConsensusFlavor into Consensus struct | Ian Jackson | 2025-10-22 | 3 | -14/+22 | |
| | | | | | | | We're going to want to apply the parse2 derive to Preamble, but this field is anomalous. Rather than trying to make it regular, simply move it to the old-parser-specific Consensus struct. | |||||
| * | tor-netdoc: Declare intent not to apply parse2 to Consensus | Ian Jackson | 2025-10-22 | 1 | -4/+1 | |
| | | | | | | | | Consensus is not going to be easy to square with parse2 - especially, signature handling is very different between the two parsers. Instead, we'll have a new NetworkStatus type. | |||||
| * | tor-netdoc: Rename consensus Header to Preamble | Ian Jackson | 2025-10-22 | 4 | -40/+42 | |
| | | | | | | There is no such thing as the "header" according to the spec. We mean the preamble. | |||||
| * | Merge branch 'p2-shared-rand-status' into 'main' | Ian Jackson | 2025-10-22 | 5 | -17/+28 | |
| |\ | | | | | | | | | impl ItemValueParseable for SharedRandStatus See merge request tpo/core/arti!3380 | |||||
| | * | tor-netdoc: impl ItemValueParseable for SharedRandStatus | Ian Jackson | 2025-10-21 | 1 | -0/+1 | |
| | | | ||||||
| | * | tor-netdoc: impl Display, FromStr, NormalItemArgument for SharedRandVal | Ian Jackson | 2025-10-21 | 1 | -2/+18 | |
| | | | ||||||
| | * | tor-netdoc: derive From<Vec<u8>> and v-v for B64 | Ian Jackson | 2025-10-21 | 1 | -7/+1 | |
| | | | | | | | | | | | | | | | | | This may not be the best utility type to use for lots of the fixed-length byte strings, but we *are* using it a lot in the old and now the new parser. Implement From and Into. | |||||
| | * | tor-netdoc: Change type of timestamp in SharedRandStatus (fmt) | Ian Jackson | 2025-10-21 | 1 | -2/+1 | |
| | | | ||||||
| | * | tor-netdoc: Change type of timestamp in SharedRandStatus | Ian Jackson | 2025-10-21 | 4 | -7/+8 | |
| | | | ||||||
| * | | Merge branch 'p2-misc-fixes' into 'main' | opara | 2025-10-21 | 2 | -2/+7 | |
| |\ \ | | | | | | | | | | | | | tor-netdoc: parse2: Minor fixes See merge request tpo/core/arti!3376 | |||||
| | * | | tor-netdoc: Reference `build::ItemArgument` from `NoramlItemArgument` doc | Ian Jackson | 2025-10-21 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | | | | Since 9ce85acb3ab0d1a0b1be6ef0f10707983f4362a3 tor-netdoc: replace impl_item_argument_as_display with NormalItemArgument this trait impl has implications for encoding as well as parsing. | |||||
| | * | | tor-netdoc: NetdocParseable derive: use more explicit syntax | Ian Jackson | 2025-10-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | In principle some other trait might be in scope. | |||||
| | * | | tor-netdoc: parse2: Don't declare internal error on subdoc intro items | Ian Jackson | 2025-10-21 | 1 | -0/+4 | |
| | |/ | | | | | | | | | subdoc intro items aren't inherently incoherent, but implementing them is nontrivial. Let's reject them with a bespoke error instead. | |||||
| * | | Merge branch 'msrv-1-86-0' into 'main' | David Goulet | 2025-10-21 | 1 | -1/+1 | |
| |\ \ | | | | | | | | | | | | | Bump MSRV from 1.85.1 to 1.86 See merge request tpo/core/arti!3382 | |||||
| | * | | Bump MSRV from 1.85.1 to 1.86 | Clara Engler | 2025-10-21 | 1 | -1/+1 | |
| | |/ | ||||||
| * | | Merge branch 'p2-blanket-arc' into 'main' | David Goulet | 2025-10-21 | 2 | -7/+30 | |
| |\ \ | | | | | | | | | | | | | tor-netdoc: blanket impl parse2 traits for Arc See merge request tpo/core/arti!3381 | |||||
| | * | | tor-netdoc: blanket impl parse2 traits for Arc | Ian Jackson | 2025-10-21 | 2 | -7/+30 | |
| | |/ | | | | | | | This replaces one ad-hoc impl and will avoid having to have any more. | |||||
| * | | tor-netdoc: Lifetime impls: reindent | Ian Jackson | 2025-10-21 | 1 | -37/+37 | |
| | | | ||||||
| * | | tor-netdoc: derive NetdocParseableFields for Lifetime | Ian Jackson | 2025-10-21 | 1 | -0/+4 | |
| | | | ||||||
| * | | tor-netdoc: parse2: Provide documentation for derived Accumulator types | Ian Jackson | 2025-10-21 | 1 | -0/+3 | |
| | | | ||||||
| * | | tor-netdoc: Lifetime: change type of fields | Ian Jackson | 2025-10-21 | 2 | -8/+8 | |
| | | | | | | | | | These fields aren't public so this doesn't have semver impacts. | |||||
| * | | tor-netdoc: Lifetime: derive constructor and accessors | Ian Jackson | 2025-10-21 | 1 | -20/+17 | |
| | | | | | | | | | | | | | | | | | | | | | | | In a moment, we're going to want to transform the field arguments. That would leave us open to bugs like this: valid_after: valid_after.into(), fresh_until: fresh_until.into(), valid_until: valid_after.into(), We'll sort out the indentation later in this branch. | |||||
| * | | tor-netdoc: Lifetime: Move some documentation to fields | Ian Jackson | 2025-10-21 | 1 | -10/+10 | |
| | | | | | | | | | | | This (briefly) regresses the documentation, but it's going to appear again when we derive the methods. | |||||
| * | | tor-netdoc: Lifetime: Construct Lifetime struct earlier | Ian Jackson | 2025-10-21 | 1 | -6/+10 | |
| |/ | ||||||
| * | tor-netdoc: Add a lot of spec cross-references and tidy docs | Ian Jackson | 2025-10-15 | 3 | -15/+101 | |
| | | | | | | | | | | | | | | Add links to torspec, and other cross-references. Change heading fof `IgnoredPublicationTimeSp` to `publication` to match spec and distinguish it from the `published` item in netstatus docs. Align several descriptions with the wording from torspec. Remove a restatement of a fact from the spec, on the `valid_until` field in `Lifetime`. | |||||
| * | tor-netdoc: Typo fixes in docs | Ian Jackson | 2025-10-15 | 2 | -2/+2 | |
| | | ||||||
| * | tor-netdoc: tests: Print out vote routerstatus | Ian Jackson | 2025-10-15 | 1 | -1/+2 | |
| | | | | | | | | I have eyeballed the output and it seems to look right. Eventually we'll have encoing code and then we'll be able to check that things round-trip. | |||||
| * | tor-netdoc: tests: Move vote parsing test to netstatus.rs | Ian Jackson | 2025-10-15 | 2 | -12/+21 | |
| | | | | | | This is a test of real document structs now, albeit that it still uses one of the types from `poc`. | |||||
| * | tor-netdoc: tests: Use real `RouterStatus` in `parse2::poc` | Ian Jackson | 2025-10-15 | 2 | -9/+8 | |
| | | | | | This now exercises all the new parsing code. | |||||
| * | tor-netdoc: impl parse2 for RouterStatus entry | Ian Jackson | 2025-10-15 | 2 | -1/+85 | |
| | | ||||||
| * | tor-netdoc: Type for parsing `m` lines in votes | Ian Jackson | 2025-10-15 | 2 | -1/+39 | |
| | | ||||||
| * | 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 | |
| | | ||||||
