summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc
Commit message (Collapse)AuthorAgeFilesLines
...
* tor-netdoc: netstatus: Replace NSCON with PLAIN in parsing rulesIan Jackson2025-08-181-5/+5
| | | | | | This is part of abolishing the use of "ns" to mean "plain". And edit a few docs lines.
* tor-netdoc: Run rustfmt againIan Jackson2025-08-182-2/+2
| | | | Not sure how this is needed now, after rebase, but whatever.
* tor-netdoc: Downgrade two TODOs re NsSomething -> PlainSomethingIan Jackson2025-08-181-2/+2
| | | | | Let's not entangle this MR with such an incompatible change. I will do this as a followup.
* tor-netdoc: varieties: Rename per_variety to each_varietyIan Jackson2025-08-183-28/+26
|
* tor-netdoc: varieties: Rename macro definition moduleIan Jackson2025-08-183-6/+5
|
* tor-netdoc: Rename "species" to "variety"Ian Jackson2025-08-186-63/+62
|
* tor-netdoc: varieties: Fix typo on doc commentIan Jackson2025-08-181-1/+1
|
* tor-netdoc: varieties: Fix ns_choose for plainIan Jackson2025-08-181-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3139#note_3239863
* tor-netdoc: rs: Implement orport_addrs in terms of addrsIan Jackson2025-08-181-1/+1
| | | | | It's not clear why this method exists, but I'm not tidying this up now.
* tor-netdoc: Add commentary about namespacingIan Jackson2025-08-183-0/+25
|
* tor-netdoc: Add a TODO comment about possibly changing the structureIan Jackson2025-08-181-0/+3
|
* tor-netdoc: Add comment to ns_export_per_speciesIan Jackson2025-08-182-0/+2
| | | | And add a blocking todo about renaming it.
* tor-netdoc: Reference parse2/multiplicity.rs.Ian Jackson2025-08-181-1/+2
| | | | | (This isn't in this branch but it will be if we rebase, and also it will be present when we merge.)
* tor-netdoc: species/variety: Fix typoIan Jackson2025-08-181-1/+1
|
* tor-netdoc: species/variety: Say to rename the macrology fileIan Jackson2025-08-181-0/+1
|
* tor-netdoc: species/variety: Fix a reference to "this module"Ian Jackson2025-08-181-1/+1
|
* tor-netdoc: species/variety: Add a big overview textIan Jackson2025-08-181-0/+51
| | | | I've started using the new "variety" terminology here.
* tor-netdoc: species/variety: Add some cfg's to avoid unused import warningsIan Jackson2025-08-181-0/+3
|
* tor-netdoc: species/variety: Properly add blocking TODOsIan Jackson2025-08-181-1/+2
|
* Revert "tor-netdoc: Link to the generated macro, for one of them (poc)"Ian Jackson2025-08-184-20/+3
| | | | This reverts commit 084ad9a716da8e44616a54fdfbba0140f5a7704e.
* tor-netdoc: species: Improve per_species heading, clarificationIan Jackson2025-08-181-1/+1
|
* tor-netdoc: species: Improve per_species headingIan Jackson2025-08-181-1/+4
|
* tor-netdoc: ns_per_species_macros: Add blocking todo for "variety" renameIan Jackson2025-08-181-0/+1
|
* tor-netdoc: ns_per_species_macros: Swap order, make vote optionalIan Jackson2025-08-181-24/+29
|
* tor-netdoc: ns_per_species_macros: Fix some refs to CONSTIan Jackson2025-08-181-2/+2
|
* tor-netdoc: Rename `ns` species ("variety") to `plain`Ian Jackson2025-08-183-22/+26
|
* tor-netdoc: ns_per_species_macros: Add some dividersIan Jackson2025-08-181-0/+8
|
* tor-netdoc: Improved a doc commentIan Jackson2025-08-181-1/+1
|
* tor-netdoc: Link to the generated macro, for one of them (poc)Ian Jackson2025-08-184-3/+20
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3139#note_3238496
* tor-netdoc: Link to the do_species macrosIan Jackson2025-08-181-1/+4
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3139#note_3238495
* tor-netdoc: Fix botched formatting.Ian Jackson2025-08-181-1/+1
|
* tor-netdoc: Fix a "flavour" reference that should have been "species"Ian Jackson2025-08-181-1/+1
|
* tor-netdoc: rs: Abolish implement_accessors macro (fmt)Ian Jackson2025-08-181-67/+67
|
* tor-netdoc: rs: Abolish implement_accessors macroIan Jackson2025-08-182-79/+69
| | | | | | We don't need this now; we can just write the impl in per_species.rs. Formatting will be fixed in a moment.
* tor-netdoc: rs: Move identical text to per_species.rs.Ian Jackson2025-08-184-144/+76
| | | | | | | These two files were largely identical. Move the common text to per_species.rs, and fix a couple of imports so that it still compiles.
* tor-netdoc: rs: Remove some fiddly docs differencesIan Jackson2025-08-182-5/+2
| | | | | | | Not having the flavour in the type name is a shame, but we probably don't want to resort to generating the docs with macros. Part of making these two files largely identical.
* tor-netdoc: rs: Introduce FLAVOR constantIan Jackson2025-08-182-4/+10
| | | | Part of making these two files largely identical.
* tor-netdoc: rs: Swap calling orderIan Jackson2025-08-182-4/+4
| | | | | Move the implementation to the trait method which then becomes completely identical in both files.
* tor-netdoc: rs: Introduce and use DOC_DIGEST_LENIan Jackson2025-08-184-6/+12
| | | | Part of making ns.rs and md.rs largely identical.
* tor-netdoc: rs: Use species macrology for DocDigestIan Jackson2025-08-182-18/+18
| | | | Part of making these two files largely identical.
* tor-netdoc: rs: Use species macrology for ConsensusRouterStatusIan Jackson2025-08-184-25/+24
| | | | | | | In the species-specific files ns.rs and md.rs, use the unqualified name; re-export it with the new macro. We are working towards making these two files largely identical.
* tor-netdoc: Introduce new "species" macrologyIan Jackson2025-08-186-0/+231
| | | | | This will let us deduplicate a fair amount of code, and also will let us support votes as well as ns and md consensuses.
* tor-netdoc: Change all in-tree references to ns-consensus from ns_consensusIan Jackson2025-08-185-14/+14
|
* tor-netdoc: Change feature name to `ns-consensus` with a hyphenIan Jackson2025-08-182-1/+4
| | | | | | | Our features are generally kebab-case, and this is the way it's documented. Retain the old name for compatibility.
* tor-netdoc: Remove two false commentsIan Jackson2025-08-182-2/+0
| | | | Cut-and-paste error, I think.
* tor-netdoc: Rerun cargo fmt after rebaseIan Jackson2025-08-142-3/+3
|
* tor-netdoc: parse2: Fix typo in "Naming conventions" docIan Jackson2025-08-141-1/+1
|
* tgr-netdoc: Tests of parse2Ian Jackson2025-08-142-0/+93
| | | | We parse and verify some network documents from testdata2.
* tor-netdoc: Proof-of-concept demo of new parserIan Jackson2025-08-146-0/+861
| | | | This can parse and validate the signatures on a consensus.
* tor-netdoc: Introduce parse2, new parserIan Jackson2025-08-1414-0/+2304
| | | | | This isn't used anywhere yet. We're going to demonstrate it, and test the demo, in a moment.