aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/netstatus/rs/build
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: routerstatus entries: Add `stats` item (votes only)Ian Jackson2026-06-151-0/+1
|
* tor-netdoc: routerstatus entries: Add `id` item (votes only)Ian Jackson2026-06-111-0/+1
|
* tor-netdoc: routerstatus entries: Add `p` itemIan Jackson2026-06-111-0/+1
|
* tor-netdoc: routerstatus: r item: add dir-port argumentIan Jackson2026-06-111-0/+1
| | | | This was simply missing.
* tor-netdoc: Rename RelayWeights to RelayWeightsItemIan Jackson2026-05-271-1/+1
| | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3991#note_3413168
* tor-netdoc: Introduce RelayWeights and use it in RouterStatusIan Jackson2026-05-271-0/+4
| | | | | | | | For encoding, we need to represent the raw parameters. This change is carefully arranged so that when the retain unknown feature is disabled (ie, in clients), the per-router data structure remains the same.
* tor-netdoc: rs referenced doc digests: Use FixedB64Ian Jackson2026-05-181-2/+3
| | | | | | | FixedB64 is the right type for these, when they are present. This abolishes some ad-hoc boilerplate. Sadly we still need a bit of that for Reasons.
* tor-netdoc: Make Nickname have its own parsing error typeIan Jackson2026-04-201-1/+2
| | | | | | | | This will let us use it in more places, more sensibly. Sadly it means a lot of syntactic vinegar at many of the call sites in the old parser, which has very janky ideas about how errors should work.
* netdoc: Remove protocol interning.Nick Mathewson2025-12-031-14/+13
| | | | (It's now done in tor_protover.)
* tor-netdoc: rs builder: Take Into<RelayFlags>Ian Jackson2025-11-181-6/+6
| | | | | | | | Many call sites pass one flag. We're going to have a type-level distinction between a single flag and a set. But that's annoying at many of the call sites which want to specify a fixed single flag. Note that `set_flags` doesn't only set flags. It replaces them.
* tor-netdoc: Be able to retain unknown flagsIan Jackson2025-11-181-0/+1
|
* tor-netdoc: Introduce DocRelayFlags for relay flags in a network documentIan Jackson2025-11-181-1/+3
| | | | This will have space for unknown flags.
* tor-netdoc: Use NotPresent rather than Option<Ignored> to suppress fieldsIan Jackson2025-10-231-2/+2
|
* tor-netdoc: RouterStatus: Add `publication` argument fieldIan Jackson2025-10-151-0/+1
|
* tor-netdoc: Mirror netdoc structure in RouterStatus document digestsIan Jackson2025-10-151-1/+12
| | | | | | | | 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: RouterStatus: Split out the `r` item's fieldsIan Jackson2025-10-151-6/+22
| | | | | | | | | 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: Make rs `identity` field a Base64FingerprintIan Jackson2025-10-061-1/+1
| | | | | | | This will allow type-driven parsing. Don't change the type in the (now-mostly-obsolete) builder and accessors; that would seem like pointless churn.
* tor-netdoc: Move all each_variety code to each_flavorIan Jackson2025-08-262-165/+165
| | | | | | | 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-262-3/+14
|
* 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_.
* tor-netdoc: De-duplicate RouterStatusBuilder::buildIan Jackson2025-08-263-34/+17
| | | | | This is now more obviously not needed. We should eventually remove this, or remove finish.
* tor-netdoc: Combine ConsensusRouterStatus and GenericRouterStatusIan Jackson2025-08-263-15/+15
| | | | Now we only need one type.
* tor-netdoc: Remove generics from Consensus and its contentsIan Jackson2025-08-263-13/+12
|
* tor-netdoc: netstatus: Move GenericRouterStatusIan Jackson2025-08-261-0/+4
| | | | | | More code motion. We're going to get rid of this type completely eventually.
* tor-netdoc: netstatus: Move everything variety-specificIan Jackson2025-08-263-2/+183
| | | | | | | | | This is much code motion. This splits many types into two. For example, `Conensus` is now`plain::Consensus<RS>` and `md::Consensus<RS>`. We're going to get rid of the generics later in this branch.
* tor-netdoc: Prepare variety modules for network status documentsIan Jackson2025-08-263-0/+33
This is empty modules and scaffolding.