aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/netstatus/build
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: recommended versions: new {client,server}-versions typeIan Jackson2026-06-111-1/+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: ConsensusBuilder: break out mk_versionsIan Jackson2026-06-111-2/+4
| | | | This is going to get more complicated, so let's make a closure for it.
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* tor-netdoc: ConsensusFooterFields: Constructor, parse, encodeIan Jackson2026-05-271-0/+1
|
* tor-netdoc: ConsensusFooterFields: Rename weights field to bandwidth_weightsIan Jackson2026-05-271-2/+2
| | | | This matches the spec.
* tor-netdoc: Rename Footer to ConsensusFooterFieldsIan Jackson2026-05-271-2/+2
| | | | | | | | | | | This will allow us to include this, conditionally, in the new per-variety footer types for consensuses, without too much disruption to the existing code. We don't leave a compatibility alias because we're going to want a Footer in each_variety.rs which is the actual sub-document. This old struct isn't suitable because it doesn't have the intro item and is just for consensuses.
* tor-netdoc: SharedRandStatuses: Use proper Constructor non-exhaustive patternIan Jackson2026-05-131-0/+1
|
* tor-netdoc: Break out SharedRandStatuses, and remove it from votesIan Jackson2026-05-131-4/+8
|
* tor-netdoc: ConsensusAuthorityEntry: derive ConstructorIan Jackson2026-04-271-0/+1
|
* tor-netdoc: ConsensusAuthorityEntry: fix type of vote_digest fieldIan Jackson2026-04-271-1/+1
|
* tor-netdoc: ConsensusAuthorityEntry: fix type of contact fieldIan Jackson2026-04-271-1/+2
|
* tor-netdoc: ConsensusAuthorityEntry: rename from ConsensusVoterInfo (2)Ian Jackson2026-04-271-5/+5
| | | | Deprecate the compatibility alias.
* tor-netdoc: DirSource: derive ConstructorIan Jackson2026-04-271-0/+1
|
* tor-netdoc: DirSource: add missing hostname fieldIan Jackson2026-04-271-0/+1
|
* tor-netdoc: DirSource: fix type of identity fieldIan Jackson2026-04-271-1/+2
|
* tor-netdoc: DirSource: fix type of nickname fieldIan Jackson2026-04-271-1/+2
|
* tor-netdoc: ns Premable: add missing field known_flagsIan Jackson2026-04-211-0/+1
|
* tor-netdoc: ns Preamble: Use ConstructorIan Jackson2026-04-211-0/+1
|
* tor-netdoc: Fix type of NotPresent items in ns PreambleIan Jackson2026-04-211-1/+1
|
* tor-netdoc: Port to web-time-compatNick Mathewson2026-03-261-2/+2
|
* tor-netdoc: Preamble: Parse published in votesIan Jackson2025-12-181-0/+1
|
* tor-netdoc: Preamble: Parse consensus-methods in votesIan Jackson2025-12-181-0/+1
|
* RelayFlags: Use RelayFlag enum variant names everywhereIan Jackson2025-11-181-2/+2
| | | | | | | Abolish the constants with the transitional names. This also abolishes the controversial name `H_S_DIR`, which Rust case transformation rules generated from `HSDir`.
* RelayFlags: Use the singular RelayFlag for naming individual flagsIan Jackson2025-11-181-3/+3
| | | | | | | | | | | | | | We're going to separate RelayFlag from RelayFlags. We could continue to provide a bunch of constant values for RelayFlags, for each individual type, but that would involve an ad-hoc derive, and would still be a bit of an unusual API. Instead, we're going to make ``RelayFlag` a normal enum. In this commit, we change everyone to refer to it by its singular name. Hopefully separating out this bulk change makes both this, and the core commit, easier to review.
* tor-netdoc: Introduce DocRelayFlags for relay flags in a network documentIan Jackson2025-11-181-1/+1
| | | | This will have space for unknown flags.
* tor-netdoc: Rename RelayFlags elements for regularity vs specIan Jackson2025-11-181-1/+1
| | | | | Add underscores so that the spec keywords and the flag constants correspond (according to `paste`'s case-changing rules).
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* tor-netdoc: Preamble: rename relay_version field to server_versionIan Jackson2025-10-221-5/+5
| | | | This makes it match the protocol and the spec.
* tor-netdoc: netstatus: Preamble: rename shared rand fields to match docIan Jackson2025-10-221-10/+10
| | | | | 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-2/+2
| | | | | | 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-15/+15
| | | | | There is no such thing as the "header" according to the spec. We mean the preamble.
* tor-netdoc: Change type of timestamp in SharedRandStatusIan Jackson2025-10-211-2/+2
|
* tor-netdoc: Correct the headings of two modulesIan Jackson2025-08-261-1/+1
| | | | | each_variety includes votes, so is "network status documents"; each_flavor is just consensuses.
* tor-netdoc: Move all each_variety code to each_flavorIan Jackson2025-08-262-461/+461
| | | | | | | 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: Turn ConsensusHeader into VARIETY::HeaderIan Jackson2025-08-261-14/+14
| | | | It's going to need to vary when we do votes.
* tor-netdoc: Combine ConsensusRouterStatus and GenericRouterStatusIan Jackson2025-08-261-3/+3
| | | | Now we only need one type.
* tor-netdoc: Remove generics from Consensus and its contentsIan Jackson2025-08-261-9/+10
|
* tor-netdoc: netstatus: Move everything variety-specificIan Jackson2025-08-263-2/+459
| | | | | | | | | 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/+34
This is empty modules and scaffolding.