aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/netstatus
Commit message (Collapse)AuthorAgeFilesLines
...
* 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) (fmt)Ian Jackson2026-04-271-1/+1
|
* tor-netdoc: ConsensusAuthorityEntry: rename from ConsensusVoterInfo (2)Ian Jackson2026-04-273-9/+9
| | | | 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: 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-214-1/+8
|
* tor-netdoc: ns Preamble: derive NetdocEncodableFieldsIan Jackson2026-04-211-0/+1
|
* tor-netdoc: ns Preamble: Use ConstructorIan Jackson2026-04-213-1/+16
|
* tor-netdoc: ns Preamble: use new deftly cfg approachIan Jackson2026-04-211-10/+8
|
* 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: Fix type of NotPresent items in ns PreambleIan Jackson2026-04-213-6/+8
|
* 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-072-4/+4
|
* tor-netdoc: Port to web-time-compatNick Mathewson2026-03-261-2/+2
|
* Fix typosTobias Stoeckmann2026-03-241-1/+1
| | | | Typos found with codespell
* Fix word duplicate typosTobias Stoeckmann2026-03-153-4/+4
|
* tor-netdoc: Rename Version and expose it as netstatus::SoftwareVersionIan Jackson2026-01-153-7/+7
| | | | | | | 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.
* 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-183-0/+5
|
* tor-netdoc: Preamble: Parse consensus-methods in votesIan Jackson2025-12-184-1/+5
|
* 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
|
* Merge branch 'protover_refactor' into 'main'Nick Mathewson2025-12-045-53/+42
|\ | | | | | | | | Make Protocols type inherently interned; add notes about usage. See merge request tpo/core/arti!3524
| * netdoc: Remove protocol interning.Nick Mathewson2025-12-035-52/+41
| | | | | | | | (It's now done in tor_protover.)
| * Move intern from tor-netdir to tor-basic-utils and make it pubNick Mathewson2025-12-031-1/+1
| |
* | tor-netdoc: Remove unnecessary castsClara Engler2025-12-041-1/+1
| |
* | tor-netdoc: Store n_authorities in usizeClara Engler2025-12-021-2/+2
|/ | | | | | | Previously, this value was stored in a u16. However, because this number is usually always derived from some sort of list type, such as `Vec`, it makes more sense to use usize for this, as it avoid unnecessary casting and error checking.
* tor-netdoc: Rename RelayFlagsParser to relay_flags::ParserIan Jackson2025-11-242-2/+2
| | | | | | | 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-242-6/+5
| | | | The generic parser type is easy enough to name now.
* RelayFlags: Use RelayFlag enum variant names everywhereIan Jackson2025-11-182-11/+11
| | | | | | | 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-183-13/+13
| | | | | | | | | | | | | | 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-185-5/+9
| | | | This will have space for unknown flags.
* tor-netdoc: Separate ConsensusRelayFlagsParser and VoteRelayFlagsParserIan Jackson2025-11-182-1/+9
| | | | | 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-182-3/+3
| | | | | 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: 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: 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-223-8/+8
| | | | This makes it match the protocol and the spec.