summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/parse2.rs
Commit message (Collapse)AuthorAgeFilesLines
* parse2: Move naming convention to pocClara Engler2025-11-271-14/+0
| | | | | | | | | | | This commit moves the "Naming Convention" of the parse2::poc module into the respective module, as it does not apply to parse2 itself, as outlined in arti!3462. With this commit, there remains `NdaSystemTimeDeprecatedSyntax` as the only type outside poc following this naming schema. However, because it is more or less already deprecated anyways, there is no real need to bother with it any further.
* tor-netdoc: Move parse2/test.rs to test2.rsIan Jackson2025-11-241-3/+0
| | | | | | | We're going to use this for the encoder testing too, so it needs to be not buried inside parse2. This commit is the file rename plus minimal changes to make it compile.
* tor-netdoc: Introduce Unknown and retain_unknown_values optionIan Jackson2025-11-181-1/+20
|
* tor-netdoc: parse2: Introduce ParseOptionsIan Jackson2025-11-181-0/+15
| | | | There are currently no options.
* tor-netdoc: parse2: Introduce ParseInput intermediate structIan Jackson2025-11-181-8/+26
| | | | | | | We're going to add options arguments, effectively, to the parsing entrypoints. To avoid a proliferation of entrypoints (eg, parse_multiple_with_options), encapsulate the run-time input values in this structure.
* tor-netdoc: tests: Use real `RouterStatus` in `parse2::poc`Ian Jackson2025-10-151-0/+1
| | | | This now exercises all the new parsing code.
* tor-netdoc: impl parse2 multiplicity for BTreeSetIan Jackson2025-10-151-2/+2
|
* tor-netdoc: parse2: export NetdocSigned traitIan Jackson2025-10-151-1/+1
| | | | This seems to have been overlooked.
* tor-netdoc: parse2: Actually expose new errors in crate toplevelIan Jackson2025-10-091-1/+1
|
* tor-netdoc: parse2: Add column field to PaarsError and print itIan Jackson2025-10-091-0/+1
|
* netdoc parse2: Fix Object handlingIan Jackson2025-09-291-0/+1
| | | | | | | | | | Use the standard multiplicity technique rather than the ad-hoc impl on Option. This allows us to support an ad-hoc parsing function for a field that's `Option`. Disentangle the `label` field attribute, which did both setting the label, and expecting a different parsing approach: replace it with `with`.
* tor-netdoc: parse2: Explicitly define "structural item"Ian Jackson2025-09-021-0/+7
|
* tor-netdoc: parse2: Provide flattening and NetdocParseableFieldsIan Jackson2025-09-021-1/+4
|
* tor-netdoc: parse2: More focused tests (success cases)Ian Jackson2025-08-261-0/+3
| | | | | The netstatus doc poc does test most of the functionality, but I want some tests of edge cases that that misses.
* tor-netdoc: Rerun cargo fmt after rebaseIan Jackson2025-08-141-1/+1
|
* tor-netdoc: parse2: Fix typo in "Naming conventions" docIan Jackson2025-08-141-1/+1
|
* tor-netdoc: Proof-of-concept demo of new parserIan Jackson2025-08-141-0/+2
| | | | This can parse and validate the signatures on a consensus.
* tor-netdoc: Introduce parse2, new parserIan Jackson2025-08-141-0/+163
This isn't used anywhere yet. We're going to demonstrate it, and test the demo, in a moment.