aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/netstatus/each_variety.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: Stabilise votes and encoding of authcertsIan Jackson2026-07-151-1/+0
|
* tor-netdoc tests: test vote roundtrip with testdata2Ian Jackson2026-06-221-9/+0
| | | | | | | | | | | Use roundtrip_netstatus, which does nearly all of the work for us. But for it to round-trip, we must do a bunch of fudging. This replaces the old parse2 vote test case (which used the poc type). The test case has some adjustments to cope with missing fields. Move the TODOs for those fields to the test case, so that they're on lines that will be deleted when the fields are implemented.
* tor-netdoc: tests: ns parse2 test: Round trip a plain consensusIan Jackson2026-06-171-1/+1
|
* tor-netdoc: NetworkStatus: derive EncodeIan Jackson2026-06-171-1/+1
|
* tor-netdoc: Fix a trailing whitespaceIan Jackson2026-06-111-1/+1
|
* tor-netdoc: recommended versions: new {client,server}-versions typeIan Jackson2026-06-111-6/+4
| | | | | | | | | | | This is a single comma-separated argument, with absence of the item being the same as absence of the arguemnt. The previous code had `Vec<String>` which in parse2 would mean zero or more occurrences of the item, with one argument each. The old parser would split the whole RHS of the arguments. It still does right now - we'll fix that in a moment.
* tor-netdoc: recommended versions: add spec linksIan Jackson2026-06-111-0/+4
|
* Merge branch 'validity-time-range' into 'main'Clara Engler2026-06-111-0/+11
|\ | | | | | | | | tor-netdoc: ns preamble: break out validity_time_range See merge request tpo/core/arti!4054
| * tor-netdoc: netstatus preamble: use saturating sub for starting_timeIan Jackson2026-06-101-1/+1
| |
| * tor-netdoc: ns preamble: break out validity_time_range (tidy)Ian Jackson2026-06-031-5/+3
| | | | | | | | Remove the otiose `preamble` and `timebound_range` bindings again.
| * tor-netdoc: ns preamble: break out validity_time_rangeIan Jackson2026-06-031-0/+13
| | | | | | | | | | | | | | We are going to want to use this when we implement verification for network statuses from parse2. Review with --color-moved.
* | tor-netdoc: Fix a doc comment formatting botchIan Jackson2026-06-091-1/+1
| |
* | tor-netdoc: Introduce toplevel NeteworkStatus typeIan Jackson2026-06-091-0/+64
|/ | | | | | | | | | | | | All of the pieces are in place for this now. Some of the pieces are not entirely complete or correct at this point: that's sorted out by other MRs already open. Currently there is no encoding, no verification functdion, and no tests. Encoding depends on another oustanding MR (arti!4058). Verification depends on the rework in arti!4065. Tests are still to come.
* tor-netdoc: NetworkStatusVersionItem, replacing poc's tupleIan Jackson2026-05-271-0/+28
| | | | | Defining a struct gives us a place to hang the documentation, and avoids an accidentally-exhaustive tuple.
* tor-netdoc: Promote/adjust poc's NetworkStatusSignaturesIan Jackson2026-05-271-0/+10
| | | | | | | | The order of arguments of poc's ns_type macro is different to that of the real code. This is very confusing! However, the type is correct, once we've added the singleton signature for votes.
* tor-netdoc: Replace poc's NddDirectoryFooter with new FooterIan Jackson2026-05-271-0/+21
| | | | | This is the whole of the footer section, with docs, appropriate derives, and so on.
* tor-netdoc: Soften a TODO.Ian Jackson2026-05-131-2/+2
| | | | | Preamble now doesn't contain anything that's *wrong*. It is missing a couple of fields that will be wanted when we generate votes.
* tor-netdoc: Add a ticket reference for a TODOIan Jackson2026-05-131-1/+1
| | | | | This isn't needed for the arti dirauth consensus method, but it will be needed for arti dirauth vote calculator.
* tor-netdoc: Add shared-rand-*-status to VoteAuthorityEntryIan Jackson2026-05-131-1/+0
|
* tor-netdoc: Break out SharedRandStatuses, and remove it from votesIan Jackson2026-05-131-6/+3
|
* tor-netdoc: Un-gate parse2 and encode loose impls under doc/netstatus (tidy)Ian Jackson2026-04-281-4/+1
|
* tor-netdoc: Un-gate parse2 and encode loose impls under doc/netstatusIan Jackson2026-04-281-4/+3
| | | | | | | | | | | | | | | This stabilises the parse2 and encode impls of consensus tyepe: * {plain, md}::{Preamble, RouterStatus, RouterStatusIntroItem} It also un-gates the parse2 and encode impls of some vote types. * VoteAuthorityEntry - this type has been completed. * RouterStatusMdDigestsVote - whole type still gated with ns-vote Re the remaining vote types (vote::*): although each_variety.rs doesn't have a cfg itself, there is a feature gate in the variety macrology.
* tor-netdoc: Fix c&p error in commentIan Jackson2026-04-211-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3864#note_3397714
* tor-netdoc: ns Premable: add missing field known_flagsIan Jackson2026-04-211-1/+5
|
* tor-netdoc: ns Preamble: derive NetdocEncodableFieldsIan Jackson2026-04-211-0/+1
|
* tor-netdoc: ns Preamble: Use ConstructorIan Jackson2026-04-211-1/+14
|
* tor-netdoc: ns Preamble: use new deftly cfg approachIan Jackson2026-04-211-10/+8
|
* tor-netdoc: Fix type of NotPresent items in ns PreambleIan Jackson2026-04-211-4/+6
|
* tor-netdoc: netstatus preamble: Reorder fields to match spec orderIan Jackson2025-12-181-21/+21
| | | | | As suggested here https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3550#note_3313757
* tor-netdoc: netstatus preamble: Add a lot of blank linesIan Jackson2025-12-181-0/+11
| | | | | I'm going to reorder things and this will make that much less error-prone, at least for me.
* tor-netdoc: netstatus preamble: Clarify TODO for known-flagsIan Jackson2025-12-181-1/+1
|
* tor-netdoc: netstatus: improve TODO commentsIan Jackson2025-12-181-1/+10
| | | | | | | | This is the result of reading through the spec and comparing it to the struct. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3550#note_3312672
* tor-netdoc: Preamble: Parse published in votesIan Jackson2025-12-181-0/+3
|
* tor-netdoc: Preamble: Parse consensus-methods in votesIan Jackson2025-12-181-0/+2
|
* tor-netdoc: Preamble: Fix consensus-method parsing in votesIan Jackson2025-12-181-1/+1
|
* tor-netdoc: impl NetdocParseableFields for PreambleIan Jackson2025-12-181-0/+12
|
* tor-netdoc: Preamble: Fix garbled doc commentIan Jackson2025-10-221-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3378#note_3277957
* tor-netdoc: Preamble: rename relay_version field to server_versionIan Jackson2025-10-221-1/+1
| | | | This makes it match the protocol and the spec.
* tor-netdoc: Say Preamble doesn't contain vote-status, in summary.Ian Jackson2025-10-221-1/+1
|
* tor-netdoc: Explain that Preamble doesn't contain vote-status either.Ian Jackson2025-10-221-1/+1
|
* tor-netdoc: netstatus: Preamble: Name the protocols fields in docIan Jackson2025-10-221-0/+2
|
* tor-netdoc: netstatus: Preamble: rename shared rand fields to match docIan Jackson2025-10-221-2/+2
| | | | | We should use the same name everywhere, even if the name in the spec is clumsy (as it is here).
* tor-netdoc: Move ConsensusFlavor into Consensus structIan Jackson2025-10-221-4/+7
| | | | | | 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: Rename consensus Header to PreambleIan Jackson2025-10-221-2/+4
| | | | | There is no such thing as the "header" according to the spec. We mean the preamble.
* tor-netdoc: Abolish `dangerous-expose-struct-fields`; always expose, insteadIan Jackson2025-10-011-28/+12
| | | | Fixes #2192
* tor-netdoc: Provide some Vote thingsIan Jackson2025-08-261-0/+55
| | | | And export *RouterStatus with the macro, and *Header.
* tor-netdoc: Move all each_variety code to each_flavorIan Jackson2025-08-261-590/+0
| | | | | | | The amount we're going to be able to reuse for votes is less than we might hope. This commit is just code motion.
* tor-netdoc: ns variety: Provide for flavour-only itemsIan Jackson2025-08-261-1/+1
|
* tor-netdoc: Fix comments to refer to itemsIan Jackson2025-08-261-1/+1
| | | | It's not just types that can vary by variety.
* tor-netdoc: Fix some out-of-date commentsIan Jackson2025-08-261-1/+1
| | | | We rename the files from per_ to each_.