| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | parse2: Move naming convention to poc | Clara Engler | 2025-11-27 | 1 | -1/+15 |
| | | | | | | | | | | | | 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: Minor wording fix in a doc | Ian Jackson | 2025-11-26 | 1 | -1/+1 |
| | | | | | | This is in the ItemValueParseable derive, so the individual fields are Arguments, not Items. | ||||
| * | tor-netdoc: Minor grammar fix in a doc | Ian Jackson | 2025-11-26 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'nd-test' into 'main' | Ian Jackson | 2025-11-25 | 1 | -747/+0 |
| |\ | | | | | | | | | tor-netdoc: Move parse2/test.rs to test2.rs See merge request tpo/core/arti!3486 | ||||
| | * | tor-netdoc: Move parse2/test.rs to test2.rs | Ian Jackson | 2025-11-24 | 1 | -747/+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. | ||||
| * | | Merge branch 'p2-mult' into 'main' | Ian Jackson | 2025-11-25 | 3 | -66/+48 |
| |\ \ | |/ |/| | | | | | tor-netdoc: parse2: Combine MultiplicitySelector See merge request tpo/core/arti!3478 | ||||
| | * | tor-netdoc: rustfmt to tidy up imports | Ian Jackson | 2025-11-19 | 1 | -4/+1 |
| | | | |||||
| | * | tor-netdoc: parse2: Combine all the multiplicity Selectors | Ian Jackson | 2025-11-19 | 3 | -49/+34 |
| | | | | | | | | | | | There is no conflict between the different uses. Having just one type makes things simpler. | ||||
| | * | tor-netdoc: parse2: Move multiplicity docs examples into Methods traits | Ian Jackson | 2025-11-19 | 1 | -32/+32 |
| | | | | | | | | | | | | | | | We're going to combine all the Selector types, so it won't be able to have these. The diff is misleading: it's docs for the Selectors that's moving. | ||||
| * | | tor-netdoc: parse2 docs: Clarify that these are for parsing | Ian Jackson | 2025-11-19 | 1 | -3/+3 |
| | | | | | | | | | We're going to have separate traits for encoding. | ||||
| * | | tor-netdoc: parse2 docs: Fix ItemObjectParseable | Ian Jackson | 2025-11-19 | 1 | -4/+1 |
| | | | | | | | | | Once upon a time this trait handled multiplicity. But it doesn't any more. | ||||
| * | | tor-netdoc: parse2 docs: Improve `#[deftly(netdoc(rest))]` docs | Ian Jackson | 2025-11-19 | 1 | -0/+2 |
| | | | |||||
| * | | tor-netdoc: parse2 docs: Fix docs for ItemArgumentParseable | Ian Jackson | 2025-11-19 | 1 | -3/+2 |
| | | | | | | | | | This is not impl for all FromStr. We have NormalItemArgument now. | ||||
| * | | tor-netdoc: parse2 docs: Document BTreeSet in multiplicity | Ian Jackson | 2025-11-19 | 1 | -2/+3 |
| |/ | | | | This was added at some point, but not documented. | ||||
| * | tor-netdoc: Introduce Unknown and retain_unknown_values option | Ian Jackson | 2025-11-18 | 1 | -0/+1 |
| | | |||||
| * | tor-netdoc: parse2: Introduce ParseOptions (fmt) | Ian Jackson | 2025-11-18 | 1 | -1/+5 |
| | | |||||
| * | tor-netdoc: parse2: Introduce ParseOptions | Ian Jackson | 2025-11-18 | 2 | -8/+48 |
| | | | | | There are currently no options. | ||||
| * | tor-netdoc: parse2: Introduce ParseInput intermediate struct | Ian Jackson | 2025-11-18 | 5 | -16/+27 |
| | | | | | | | | 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: parse2: Improve error message when using with= | Ian Jackson | 2025-11-10 | 1 | -1/+1 |
| | | | | | | This can result in "trait not implemented" errors here. Use the `${paste_spanned}` trick. | ||||
| * | tor-netdoc: parse2 derive: deduplicate completion | Ian Jackson | 2025-11-10 | 1 | -35/+33 |
| | | |||||
| * | tor-netdoc: parse2 derive: deduplicate item accumulation | Ian Jackson | 2025-11-10 | 1 | -31/+35 |
| | | |||||
| * | tor-netdoc: parse2 derive: deduplicate item accumulation (prep) | Ian Jackson | 2025-11-10 | 1 | -43/+54 |
| | | | | | | | | | | Move what is now IF_NONSTRUCTURAL_ACCUMULATE into the common module. It's not yet suitable for reuse. The docs for ACCUMULATE_ITEM_VALUE are still wrong. We'll fix that in a moment. | ||||
| * | tor-netdoc: parse2 derive: Provide dtrace in NetdocParseableFields | Ian Jackson | 2025-11-10 | 1 | -12/+21 |
| | | | | | | | This was previously only not done because of the need to c&p. Also, we're going to be expanding some common macros that will use it. | ||||
| * | tor-netdoc: parse2 derive: Get rid of $ITEM workaround | Ian Jackson | 2025-11-10 | 1 | -10/+4 |
| | | | | | The hygiene is fixed in derive-deftly 1.5.x. | ||||
| * | tor-netdoc: Fix typo | Ian Jackson | 2025-11-10 | 1 | -1/+1 |
| | | |||||
| * | tor-netdoc: parse2 derive: deduplicate item parsing | Ian Jackson | 2025-11-06 | 1 | -24/+23 |
| | | |||||
| * | tor-netdoc: parse2 derive: deduplicate item set selectors | Ian Jackson | 2025-11-06 | 1 | -47/+62 |
| | | |||||
| * | tor-netdoc: parse2 derive: deduplicate F_EFFECTIVE_TYPE | Ian Jackson | 2025-11-06 | 1 | -24/+13 |
| | | |||||
| * | tor-netdoc: parse2 derive: deduplication: field types and keywords | Ian Jackson | 2025-11-06 | 1 | -36/+39 |
| | | | | | | | | Have the module expect the use site to determine (mostly) the field kind. Document this expectation. Now NetdocParseableCommon can have the keyword-related definitions. | ||||
| * | tor-netdoc: parse2 derive: deduplication: start a module | Ian Jackson | 2025-11-06 | 2 | -9/+13 |
| | | | | | Put one textually-identical define in it, to start with. | ||||
| * | Fix name of clippy lint to unchecked_time_subtraction (2) | Ian Jackson | 2025-11-06 | 2 | -2/+2 |
| | | | | | Run maint/add_warning | ||||
| * | Use a while let loop (to placate clippy) | Ian Jackson | 2025-11-06 | 1 | -2/+1 |
| | | |||||
| * | tor-netdoc: Add unit tests for NotPresent and Ignored objects | Ian Jackson | 2025-10-23 | 1 | -1/+32 |
| | | |||||
| * | tor-netdoc: Add unit tests for NotPresent items | Ian Jackson | 2025-10-23 | 1 | -0/+4 |
| | | |||||
| * | tor-netcoc: Introduce NotPresent, for absent multiplicity | Ian Jackson | 2025-10-23 | 1 | -0/+11 |
| | | | | | | | | | | Currently this is mishandled: the current use sites (in rs/each_variety.rs) use Option<Ignored>, which would reject repeated items with that keyword, which is technically wrong. And encoing will become a problem. Vec<Ignored> would be wrong too. Instead, broaden NotPresent and give it multiplicity impls. | ||||
| * | tor-netdoc: Move parse2 impls on Ignored to types/misc.rs | Ian Jackson | 2025-10-23 | 1 | -22/+0 |
| | | | | | | | This seems to be where we're putting most of the parse2 impls on these types, now. That makes more sense as parse2 becomes more of a proper thing. | ||||
| * | tor-netdoc: NetdocParseableFields derive: support flatten (test) | Ian Jackson | 2025-10-22 | 1 | -0/+11 |
| | | |||||
| * | tor-netdoc: NetdocParseableFields derive: support flatten | Ian Jackson | 2025-10-22 | 1 | -2/+26 |
| | | | | | | | | | | This allows a NetdocParseableFields inside a NetdocParseableFields. The code is rather duplicative with the NetdocParseable implementation. This is due to limitations in derive-deftly; see https://gitlab.torproject.org/Diziet/rust-derive-deftly/-/merge_requests/525 where I'm trying to start to address them. | ||||
| * | tor-netdoc: NetdocParseableFields derive: break out kw variable | Ian Jackson | 2025-10-22 | 1 | -1/+3 |
| | | | | | We're going to reuse this. | ||||
| * | Merge branch 'p2-misc-fixes' into 'main' | opara | 2025-10-21 | 1 | -1/+5 |
| |\ | | | | | | | | | tor-netdoc: parse2: Minor fixes See merge request tpo/core/arti!3376 | ||||
| | * | tor-netdoc: NetdocParseable derive: use more explicit syntax | Ian Jackson | 2025-10-21 | 1 | -1/+1 |
| | | | | | | | | | In principle some other trait might be in scope. | ||||
| | * | tor-netdoc: parse2: Don't declare internal error on subdoc intro items | Ian Jackson | 2025-10-21 | 1 | -0/+4 |
| | | | | | | | | | | | subdoc intro items aren't inherently incoherent, but implementing them is nontrivial. Let's reject them with a bespoke error instead. | ||||
| * | | Merge branch 'p2-blanket-arc' into 'main' | David Goulet | 2025-10-21 | 2 | -7/+30 |
| |\ \ | | | | | | | | | | | | | tor-netdoc: blanket impl parse2 traits for Arc See merge request tpo/core/arti!3381 | ||||
| | * | | tor-netdoc: blanket impl parse2 traits for Arc | Ian Jackson | 2025-10-21 | 2 | -7/+30 |
| | |/ | | | | | | | This replaces one ad-hoc impl and will avoid having to have any more. | ||||
| * / | tor-netdoc: parse2: Provide documentation for derived Accumulator types | Ian Jackson | 2025-10-21 | 1 | -0/+3 |
| |/ | |||||
| * | tor-netdoc: tests: Move vote parsing test to netstatus.rs | Ian Jackson | 2025-10-15 | 1 | -12/+0 |
| | | | | | | This is a test of real document structs now, albeit that it still uses one of the types from `poc`. | ||||
| * | tor-netdoc: tests: Use real `RouterStatus` in `parse2::poc` | Ian Jackson | 2025-10-15 | 1 | -9/+7 |
| | | | | | This now exercises all the new parsing code. | ||||
| * | tor-netdoc: impl parse2 multiplicity for BTreeSet | Ian Jackson | 2025-10-15 | 2 | -1/+34 |
| | | |||||
| * | tor-netdoc: impl parse2 traits for protovers | Ian Jackson | 2025-10-15 | 2 | -0/+24 |
| | | |||||
| * | tor-netdoc: Provide convenience method for handling invalid arguments | Ian Jackson | 2025-10-15 | 1 | -0/+14 |
| | | |||||
