aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/parse2
Commit message (Collapse)AuthorAgeFilesLines
...
* tor-netdoc: parse2: Bind a `selector` localIan Jackson2025-09-021-1/+2
| | | | We're going to reuse this.
* tor-netdoc: parse2: derive: Remove an unneeded nested ${concat }Ian Jackson2025-09-021-1/+1
| | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3186#note_3249820
* tor-netdoc: parse2: Speak of non-structural *items* rather than fieldsIan Jackson2025-09-021-1/+1
|
* tor-netdoc: parse2: Report unexpected subdoc multiplicity at the intro itemIan Jackson2025-09-022-3/+5
|
* tor-netdoc: multiplicity: Introduce can_accumulateIan Jackson2025-09-021-2/+20
| | | | | | We're going to use this to check that we can accept a sub-document before we parse it. That will make the error come out in the right place.
* tor-netdoc: parse2 tests: Add test case for flatteningIan Jackson2025-09-021-2/+42
|
* tor-netdoc: parse2 tests: Use sval in one place rather than open-codingIan Jackson2025-09-021-1/+1
|
* tor-netdoc: parse2: Provide flattening and NetdocParseableFieldsIan Jackson2025-09-023-7/+151
|
* tor-netdoc: parse2: Preparatory rework for flatteningIan Jackson2025-09-021-8/+10
| | | | | Change from two loops over fields and two ${when}, to one loop with ${select1}. There will be another arm in a moment.
* tor-netdoc: parse2: Specify `for struct` in one of the derivesIan Jackson2025-09-021-1/+1
| | | | None of these things support enums or unions.
* tor-netdoc: parse2: tests: Include the test doc in more error msgsIan Jackson2025-09-021-5/+6
|
* tor-netdoc: parse2: multiplicity: Remove now-obsolete trait itemsIan Jackson2025-08-261-12/+0
|
* tor-netdoc: parse2: Know that we always accumulate into Option<Field>Ian Jackson2025-08-262-2/+2
|
* tor-netdoc: parse2: Always accumulate into Option<Field> (fmt)Ian Jackson2025-08-261-1/+5
|
* tor-netdoc: parse2: Always accumulate into Option<Field>Ian Jackson2025-08-261-13/+22
|
* tor-netdoc: parse2: Break out F_EFFECTIVE_TYPEIan Jackson2025-08-261-7/+13
| | | | We're going to want to reuse this.
* tor-netdoc: parse2: Use selector_ rather than open-codingIan Jackson2025-08-261-1/+1
| | | | We're going to make this depend on $ftype differently.
* tor-netdoc: parse2: Report subdoc intro item keyword for missing itemIan Jackson2025-08-263-4/+19
| | | | This corrects the error message.
* tor-netdoc: parse2: More focused tests (error cases)Ian Jackson2025-08-261-0/+84
|
* tor-netdoc: parse2: More focused tests (success cases)Ian Jackson2025-08-261-0/+179
| | | | | The netstatus doc poc does test most of the functionality, but I want some tests of edge cases that that misses.
* tor-netdoc: parse2: Fix doctype_for_errorIan Jackson2025-08-261-3/+4
| | | | Actually report the intro item, as the docs state.
* tor-netdoc: Rerun cargo fmt after rebaseIan Jackson2025-08-141-2/+2
|
* 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-145-0/+859
| | | | This can parse and validate the signatures on a consensus.
* tor-netdoc: Introduce parse2, new parserIan Jackson2025-08-1411-0/+2132
This isn't used anywhere yet. We're going to demonstrate it, and test the demo, in a moment.