| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | tor-netdoc: Un-gate parse2 and encode loose impls in doc/netstatus.rs (rewrap) | Ian Jackson | 2026-04-28 | 1 | -14/+4 | |
| | | ||||||
| * | tor-netdoc: Un-gate parse2 and encode loose impls in doc/netstatus.rs | Ian Jackson | 2026-04-28 | 1 | -12/+12 | |
| | | | | | | | | | | | | This stabilises the parse2 and encode impls of * Lifetime * ConsensusMethods * SharedRandStatus * ConsensusAuthorityEntry All of these are complete. | |||||
| * | tor-netdoc: Un-gate features impls in doc/netstatus/dir_source.rs (rewrap) | Ian Jackson | 2026-04-28 | 1 | -4/+1 | |
| | | ||||||
| * | tor-netdoc: Un-gate features impls in doc/netstatus/dir_source.rs | Ian Jackson | 2026-04-28 | 1 | -8/+4 | |
| | | | | | There are no outstanding TODOs here. | |||||
| * | tor-netdoc: Un-gate parse2 and encode mods in doc/netstatus.rs (fmt) | Ian Jackson | 2026-04-28 | 1 | -12/+12 | |
| | | ||||||
| * | tor-netdoc: Un-gate parse2 and encode mods in doc/netstatus.rs (tidy) | Ian Jackson | 2026-04-28 | 1 | -19/+7 | |
| | | | | | | | Tidy the imports, and remove some now-unneeded { }. We'll run rustfmt in a moment to sort and reindent. | |||||
| * | tor-netdoc: Un-gate parse2 and encode mods in doc/netstatus.rs | Ian Jackson | 2026-04-28 | 1 | -16/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | This stabilises the parse2 and encode impls of * NetParams<i32> * ProtoStatuses It also stabilises the parse2 impls of the following types which do not currently have any encode impls: * RelayWeight * rs::SoftwareVersion * IgnoredPublicationTimeSp As for TODOs and incomplete code: the things we're stabilising here are very simple, or fully formed. Implementing encoding for IgnoredPublicationTimeSp looks impossible, but we can cross that bridge when we come to it. We un-cfg-gate the parse2 and encode imports too. | |||||
| * | tor-netdoc: Upgrade a TODO re NetworkStatusUnverifiedVote | Ian Jackson | 2026-04-28 | 1 | -1/+1 | |
| | | ||||||
| * | tor-netdoc: Un-gate features in doc/microdesc.rs (fmt) | Ian Jackson | 2026-04-28 | 1 | -3/+1 | |
| | | ||||||
| * | tor-netdoc: Un-gate features in doc/microdesc.rs | Ian Jackson | 2026-04-28 | 1 | -16/+10 | |
| | | | | | | | These are all parse2, and there are no blocking TODOs. We're leaving `build_docs` alone. | |||||
| * | tor-netdoc: Un-gate parse2 in doc/routerdesc.rs | Ian Jackson | 2026-04-28 | 1 | -1/+0 | |
| | | | | | This is just one cfg, for RelayPlatform. | |||||
| * | tor-netdoc: Un-gate parse2 and encode in types/relay_flags.rs | Ian Jackson | 2026-04-28 | 1 | -6/+0 | |
| | | | | | There is one irrelevant TODO. | |||||
| * | tor-netdoc: Un-gate features in types/policy/addrpolicy.rs | Ian Jackson | 2026-04-28 | 1 | -3/+0 | |
| | | | | | There is only one TODO in this file and it's not really relevant. | |||||
| * | tor-netdoc: Un-gate features in types/family.rs | Ian Jackson | 2026-04-28 | 1 | -4/+3 | |
| | | | | | | There is one TODO DIRMIRROR but it's a possible API change. I think it doesn't mean we can't un-gate this now. | |||||
| * | tor-netdoc: Un-gate features in types/policy/portpolicy.rs (fmt) | Ian Jackson | 2026-04-28 | 1 | -16/+15 | |
| | | ||||||
| * | tor-netdoc: Un-gate features in types/policy/portpolicy.rs (tidy) | Ian Jackson | 2026-04-28 | 1 | -6/+0 | |
| | | ||||||
| * | tor-netdoc: Un-gate features in types/policy/portpolicy.rs | Ian Jackson | 2026-04-28 | 1 | -9/+2 | |
| | | | | | These are all parse2, and there are no blocking TODOs. | |||||
| * | tor-netdoc: Un-gate features in types/policy.rs (fmt) | Ian Jackson | 2026-04-28 | 1 | -10/+10 | |
| | | ||||||
| * | tor-netdoc: Un-gate features in types/policy.rs (tidy) | Ian Jackson | 2026-04-28 | 1 | -5/+2 | |
| | | | | | | | Remove a now-pointless pair of { }. We'll reindent this in a moment. | |||||
| * | tor-netdoc: Un-gate features in types/policy.rs | Ian Jackson | 2026-04-28 | 1 | -3/+1 | |
| | | | | | These are all parse2, and there are no blocking TODOs. | |||||
| * | Merge branch 'ns-auth-entry' into 'main' | Clara Engler | 2026-04-27 | 10 | -195/+543 | |
| |\ | | | | | | | | | tor-netdoc: Parsing and encoding for netstatus authority sections See merge request tpo/core/arti!3892 | |||||
| | * | tor-netdoc: Remove two now-otiose use's | Ian Jackson | 2026-04-27 | 1 | -2/+2 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: discuss vote-digest | Ian Jackson | 2026-04-27 | 1 | -0/+4 | |
| | | | ||||||
| | * | tor-netdoc: semver.md: remove a trailing space | Ian Jackson | 2026-04-27 | 1 | -1/+1 | |
| | | | ||||||
| | * | tor-netdoc: consensus authority section: document addition in semver.md | Ian Jackson | 2026-04-27 | 1 | -0/+1 | |
| | | | ||||||
| | * | tor-netdoc: consensus authority section: ConsensusAuthoritySection | Ian Jackson | 2026-04-27 | 4 | -91/+113 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace poc code with new ConsensusAuthoritySection. This is an entirely new parsing approach. Key differences: * We parse the arguments to dir-source, which poc didn't. * We don't clone the input and fully parse the first item; instead, we dismantle the dir-source line ad-hoc to determine the item type. * Rather than a Vec of Enums, we parse into two Vecs of the different entry types. The few lines that aren't rewritten show up as moved in git show --color-moved --color-moved-ws=allow-indentation-change but I suggest reviewing the new implementation de novo. | |||||
| | * | tor-netdoc: consensus authority section: SupersededAuthorityKey | Ian Jackson | 2026-04-27 | 2 | -2/+119 | |
| | | | | | | | | | | | This is the type corresponding to a "superseded authority key entry", which is a single dir-source line with a weird nickname. | |||||
| | * | tor-netdoc: DirSource: move to new dir_source module | Ian Jackson | 2026-04-27 | 2 | -42/+60 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is going to handle the bizarre `-legacy` nickname encoding for superseded authority keys. That's going to be a fair amount of code, some derived from DirSource. Make a module for it all. We're going to take a different approach that in poc. So there's going to be all-new code and then the poc version will be deleted. They don't resemble each other very much. In this commit: just code motion, and the creation of the new module with associated doc comment. Review with --color-moved. | |||||
| | * | tor-netdoc: VoteAuthoritySection: derive Constructor | Ian Jackson | 2026-04-27 | 2 | -4/+18 | |
| | | | ||||||
| | * | tor-netdoc: VoteAuthoritySection: add a blank line | Ian Jackson | 2026-04-27 | 1 | -0/+1 | |
| | | | ||||||
| | * | tor-netdoc: VoteAuthoritySection: implement encoding | Ian Jackson | 2026-04-27 | 1 | -0/+15 | |
| | | | | | | | | | | | We must add to our ad-hoc derive, since the normal derive can't do the encoding either. | |||||
| | * | tor-netdoc: VoteAuthoritySection: iterate rather than open-coding fields | Ian Jackson | 2026-04-27 | 1 | -3/+7 | |
| | | | | | | | | | | | Use deftly's field loop, rather than handcoding the two fields. (We don't expect to add any fields, but if we did this would be more correct.) | |||||
| | * | tor-netdoc: VoteAuthoritySection: improve doc comments | Ian Jackson | 2026-04-27 | 1 | -3/+13 | |
| | | | ||||||
| | * | tor-netdoc: VoteAuthoritySection: promote poc to prod | Ian Jackson | 2026-04-27 | 3 | -51/+55 | |
| | | | | | | | | | | | | | | | | | | | | | | | Almost entirely code motion. Review with --color-moved. This is new correct for votes, and uses the non-poc names for things. We'll improve up a few minor things in a moment. The cfg situation is getting very tangled. There are already various TODOs about this. I think it is time to bite the bullet; I will do that separately from this MR. | |||||
| | * | tor-netdoc: VoteAuthoritySection: promote poc to prod (prep, use's) | Ian Jackson | 2026-04-27 | 2 | -3/+5 | |
| | | | | | | | | | | | Prepare for the namespace environment in the mainline doc/netstatus modules. (Add a couple of temporary use's.) | |||||
| | * | tor-netdoc: VoteAuthoritySection: promote poc to prod (prep, rename) | Ian Jackson | 2026-04-27 | 1 | -5/+7 | |
| | | | | | | | | | | | | | | | | | | | | | We are going to move this code to the main doc/netstatus modules. Rename the struct and its associated derive macro, to the naming approach used outside poc. We leave a `use` behind in poc. That can remain until poc is eventually abolished. | |||||
| | * | tor-netdoc: VoteAuthoritySection: deindent NddAuthoritySection | Ian Jackson | 2026-04-27 | 1 | -42/+42 | |
| | | | | | | | | | | | Purely whitespace change: deindent certain lines by 4. `git show -w` is helpful. | |||||
| | * | tor-netdoc: VoteAuthorityEntry: replace in poc with new proper type | Ian Jackson | 2026-04-27 | 2 | -23/+15 | |
| | | | | | | | | | | | | | This has a side effect of testing the parsing. (Testing of the encoding will have to come a lot later.) | |||||
| | * | tor-netdoc: VoteAuthorityEntry: new struct (just a skeleton for now) | Ian Jackson | 2026-04-27 | 2 | -0/+37 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: document changes in semver.md | Ian Jackson | 2026-04-27 | 1 | -0/+3 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: derive Constructor | Ian Jackson | 2026-04-27 | 2 | -1/+11 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: derive encoding and parsing | Ian Jackson | 2026-04-27 | 1 | -1/+5 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: fix type of vote_digest field | Ian Jackson | 2026-04-27 | 2 | -3/+3 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: fix type of contact field | Ian Jackson | 2026-04-27 | 2 | -3/+17 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: add some blank lines | Ian Jackson | 2026-04-27 | 1 | -0/+2 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: rename from ConsensusVoterInfo (2) (fmt) | Ian Jackson | 2026-04-27 | 1 | -1/+1 | |
| | | | ||||||
| | * | tor-netdoc: ConsensusAuthorityEntry: rename from ConsensusVoterInfo (2) | Ian Jackson | 2026-04-27 | 4 | -14/+14 | |
| | | | | | | | | | Deprecate the compatibility alias. | |||||
| | * | tor-netdoc: ConsensusAuthorityEntry: rename from ConsensusVoterInfo | Ian Jackson | 2026-04-27 | 1 | -3/+22 | |
| | | | | | | | | | Use the terminology from the spec. | |||||
| | * | tor-netdoc: DirSource: document changes in semver.md | Ian Jackson | 2026-04-27 | 1 | -1/+3 | |
| | | | ||||||
| | * | tor-netdoc: DirSource: derive Constructor | Ian Jackson | 2026-04-27 | 2 | -1/+12 | |
| | | | ||||||
