aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/netstatus/rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: Make RouterStatus.port_policy use Intern, not ArcIan Jackson2026-07-271-1/+1
| | | | We intern these in Microdesc, and should be consistent.
* tor-netdoc: Stabilise votes and encoding of authcerts (formatting)Ian Jackson2026-07-151-4/+2
|
* tor-netdoc: Stabilise votes and encoding of authcertsIan Jackson2026-07-152-3/+2
|
* tor-netdoc: drop a done TODOIan Jackson2026-07-151-3/+0
| | | | torspec!499 is merged.
* tor-netdoc: routerstatus entries: Add `stats` item (votes only)Ian Jackson2026-06-153-0/+7
|
* tor-netdoc: routerstatus entries: Add `id` item (votes only)Ian Jackson2026-06-113-0/+11
|
* tor-netdoc: routerstatus entries: Add note about location of `m` itemIan Jackson2026-06-111-0/+3
|
* tor-netdoc: routerstatus entries: Add `p` itemIan Jackson2026-06-113-0/+10
|
* tor-netdoc: routerstatus: r item: add dir-port argumentIan Jackson2026-06-113-0/+7
| | | | This was simply missing.
* tor-netdoc: routerstatus: r item: add blank lines to structIan Jackson2026-06-111-0/+5
|
* tor-netdoc: impl EncodeOrd for RouterStatusIan Jackson2026-06-091-0/+8
| | | | This defines ordering of routerstatus items.
* tor-netdoc: derive encoding for RouterStatusIan Jackson2026-06-092-1/+1
|
* tor-netdoc: derive encoding for RouterStatusIntroItemIan Jackson2026-06-091-0/+1
| | | | | | This is a nontrivial type with much weirdness to do with publication times etc., so let's mark this as incomplete until we have a round trip test.
* tor-netdoc: Rename RelayWeights to RelayWeightsItemIan Jackson2026-05-274-5/+5
| | | | | 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-274-6/+10
| | | | | | | | 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: Implement encoding for md rs digestIan Jackson2026-05-181-0/+12
| | | | | This is not tested yet. It will be tested when we add round-trip tests for votes.
* tor-netdoc: Fix comment about from_unparsedIan Jackson2026-05-181-1/+1
| | | | This doesn't parse the keyword, only the value.
* tor-netdoc: Tidy doc_digest_parse2_m into doc_digest_item_mIan Jackson2026-05-182-5/+5
| | | | | | | | | * Rename it so that it doesn't mention parse2, because we're going to want to encode too. * Remove the indirection: rename the one in md.rs to be the name that's used in `with = `. (Previously, things were more complicated so the extra layer of indirection was helpful.)
* tor-netdoc: rs referenced doc digests: Use FixedB64 (fmt)Ian Jackson2026-05-181-2/+1
|
* tor-netdoc: rs referenced doc digests: Use FixedB64Ian Jackson2026-05-185-42/+21
| | | | | | | 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: relay flags with: Use ns_type! rather than conditional importIan Jackson2026-05-181-4/+7
| | | | | | | | Previously, this was't possible because derive-deftly wanted a string. But now it can take a type, and types can contain macro calls inside their generics etc. This makes the code much more local and direct.
* tor-netdoc: Fix comments in rs variety filesIan Jackson2026-05-183-3/+3
| | | | This is router *status* not router *descriptor*.
* tor-netdoc: Fix NotPresent to use same Each valueIan Jackson2026-05-181-2/+2
|
* tor-netdoc: Un-gate "plain-consensus" cargo featureIan Jackson2026-04-281-1/+0
| | | | As per #2492.
* tor-netdoc: Un-gate parse2 and encode loose impls under doc/netstatus (tidy)Ian Jackson2026-04-281-4/+4
|
* tor-netdoc: Un-gate parse2 and encode loose impls under doc/netstatusIan Jackson2026-04-282-16/+12
| | | | | | | | | | | | | | | 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: DocRelayFlags: rename VoteRepr to NoImplicitReprIan Jackson2026-04-211-1/+1
|
* tor-netdoc: DocRelayFlags: rename helper structIan Jackson2026-04-211-1/+1
| | | | This is going to be used for encoding too.
* tor-netdoc: Make Nickname have its own parsing error typeIan Jackson2026-04-202-2/+5
| | | | | | | | 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.
* tor-netdoc: parse2/encode derive: Use unquoted attributes at call sitesIan Jackson2026-04-071-3/+3
|
* Fix typosTobias Stoeckmann2026-03-241-1/+1
| | | | Typos found with codespell
* Fix word duplicate typosTobias Stoeckmann2026-03-151-2/+2
|
* tor-netdoc: Rename Version and expose it as netstatus::SoftwareVersionIan Jackson2026-01-152-2/+2
| | | | | | | This struct is still a bit odd, and there's a todo saying we may change it again, but at least now it's now available. While we're here, rename the variant Tor to CTor.
* netdoc: Remove protocol interning.Nick Mathewson2025-12-034-51/+41
| | | | (It's now done in tor_protover.)
* tor-netdoc: Rename RelayFlagsParser to relay_flags::ParserIan Jackson2025-11-241-1/+1
| | | | | | | Since we expose the relay_flags module, it makes sense to give this a shorter name. (It had a longer name when it was part of the netstatus module.)
* tor-netdoc: relay_flags: Remove two now-not-needed type aliasesIan Jackson2025-11-241-4/+4
| | | | The generic parser type is easy enough to name now.
* RelayFlags: Use RelayFlag enum variant names everywhereIan Jackson2025-11-181-9/+9
| | | | | | | 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-9/+9
| | | | | | | | | | | | | | 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: 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: RelayFlags: Tidy up from_item for flagsIan Jackson2025-11-181-1/+3
| | | | | | | | Implement this on DocRelayFlags instead, since that's what it returns. And change the name to from_item_consensus to highlight its semantic restriction. (It's not generic over the implied flags, so it can only do one thing.)
* tor-netdoc: Be able to retain unknown flagsIan Jackson2025-11-183-2/+3
|
* tor-netdoc: Introduce DocRelayFlags for relay flags in a network documentIan Jackson2025-11-183-3/+6
| | | | This will have space for unknown flags.
* tor-netdoc: Separate ConsensusRelayFlagsParser and VoteRelayFlagsParserIan Jackson2025-11-181-1/+8
| | | | | Provide a per-variety alias and use it for parsing; no longer impl ItemValueParseable for RelayFlags.
* tor-netdoc: Rename RelayFlags elements for regularity vs specIan Jackson2025-11-181-2/+2
| | | | | Add underscores so that the spec keywords and the flag constants correspond (according to `paste`'s case-changing rules).
* tor-netdoc: Abolish ArgumentNotPresent alias, completing the renameIan Jackson2025-10-231-1/+1
|
* tor-netdoc: Use NotPresent rather than Option<Ignored> to suppress fieldsIan Jackson2025-10-234-8/+8
|
* tor-netdoc: Add a lot of spec cross-references and tidy docsIan Jackson2025-10-151-8/+47
| | | | | | | | | | | | | 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 docsIan Jackson2025-10-151-1/+1
|
* tor-netdoc: impl parse2 for RouterStatus entryIan Jackson2025-10-152-1/+85
|
* tor-netdoc: RouterStatus: Add `publication` argument fieldIan Jackson2025-10-154-1/+5
|