| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-netdoc: Implement parse2 traits for Intern wrappers | Clara Engler | 2026-06-24 | 1 | -1/+2 |
| | | | | | | This commit implements ItemValueParseable and ItemArgumentParseable for Intern<T> types. This should be sufficient for the time being. | ||||
| * | tor-netcoc: NetdocParseableUnverified derive: forbid NetdocParseable | Ian Jackson | 2026-06-10 | 1 | -0/+1 |
| | | |||||
| * | tor-netdoc: Rename NetdocUnverified trait to NetdocParseableUnverified (fmt) | Ian Jackson | 2026-06-02 | 1 | -3/+3 |
| | | |||||
| * | tor-netdoc: Rename NetdocUnverified trait to NetdocParseableUnverified | Ian Jackson | 2026-06-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | The NetdocParseableUnverified derive macro implements this trait (amongst other things). Traits and derive macros should have aligned names. This is only used for parsing, so let's keep the "Parseable" part of the name. I don't think the effort of deprecated alias, for downstream compatibility, is worth it, our compatibility policy notwithstanding. | ||||
| * | tor-netdoc: parse2: Add missing ItemObjectParseable to prelude (fmt) | Ian Jackson | 2026-04-29 | 1 | -2/+2 |
| | | |||||
| * | tor-netdoc: parse2: Add missing ItemObjectParseable to prelude | Ian Jackson | 2026-04-29 | 1 | -1/+1 |
| | | | | | And remove a then-unneeded import in a using module. | ||||
| * | tor-netdoc: Apply deferred rustfmt churn to imports | Ian Jackson | 2026-03-19 | 1 | -3/+2 |
| | | |||||
| * | tor-netdoc: parse2: Don't impl NetdocParseable for bodies of signed docs | Ian Jackson | 2026-03-19 | 1 | -0/+1 |
| | | | | | Such an impl is a footgun. Explain this in docs & comments. | ||||
| * | tor-netdoc: parse2: Move hash out of signature items | Ian Jackson | 2026-03-19 | 1 | -2/+2 |
| | | | | | | | | | | | During encoding, including these hashes in the signature items makes no sense. The hashes are an *input* to the signature items, but not part of them. Move the hashes out of the items. Instead, provide each signatures section type with a hash accumulator type, in which the hash(es) are stored. | ||||
| * | tor-netdoc: parse2: Introduce SignatureData struct | Ian Jackson | 2026-03-19 | 1 | -1/+1 |
| | | | | | This is going to contain body information, and the hashes, too. | ||||
| * | tor-netdoc: NetdocParseableSignatures: Make into its own trait | Ian Jackson | 2026-03-19 | 1 | -0/+1 |
| | | |||||
| * | tor-netdoc: Apply rustfmt churn | Ian Jackson | 2026-03-03 | 1 | -2/+2 |
| | | |||||
| * | tor-netdoc: parse2: Use eprint for dtrace | Ian Jackson | 2026-03-03 | 1 | -2/+1 |
| | | |||||
| * | tor-netdoc: Rename *Signed to *Unverified | Ian Jackson | 2026-03-03 | 1 | -1/+1 |
| | | | | | | | | | | | This was a weird name, and while working in this area it all seemed to make the docs strange. Rename it. This is quite invasive! In theory we could have the macros generate compatibility aliases, but that seems quite complex. | ||||
| * | tor-netdoc: Move NetdocSigned to signatures.rs | Ian Jackson | 2026-03-03 | 1 | -1/+2 |
| | | | | | | I keep not finding it because all the other signatures stuff is in signatures.rs. | ||||
| * | tor-netdoc: parse2: Provide NetdocParseable::is_structural_keyword (rustfmt) | Ian Jackson | 2026-01-15 | 1 | -3/+2 |
| | | |||||
| * | tor-netdoc: parse2: Provide NetdocParseable::is_structural_keyword | Ian Jackson | 2026-01-15 | 1 | -0/+1 |
| | | | | | Roughly as per the proposal in `doc/dev/notes/authcert-in-consensus.md`. | ||||
| * | tor-netdoc: parse2: debug: Fix scoping of netdoc_parseable_derive_debug | Ian Jackson | 2025-12-10 | 1 | -0/+1 |
| | | | | | | | While testing I discovered that the `#[deftly(netdoc(debug))]` feature (which dumps parsing progress to stderr) didn't compile if the derive was invoked from elsewhere. | ||||
| * | 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 | 1 | -2/+2 |
| | | | | | | There is no conflict between the different uses. Having just one type makes things simpler. | ||||
| * | tor-netdoc: Introduce Unknown and retain_unknown_values option | Ian Jackson | 2025-11-18 | 1 | -0/+1 |
| | | |||||
| * | tor-netdoc: parse2 derive: deduplication: start a module | Ian Jackson | 2025-11-06 | 1 | -1/+1 |
| | | | | | Put one textually-identical define in it, to start with. | ||||
| * | tor-netdoc: impl parse2 multiplicity for BTreeSet | Ian Jackson | 2025-10-15 | 1 | -1/+1 |
| | | |||||
| * | tor-netdoc: impl parse2 traits for protovers | Ian Jackson | 2025-10-15 | 1 | -0/+1 |
| | | |||||
| * | tor-netdoc: Introduce ArgumentError | Ian Jackson | 2025-10-09 | 1 | -1/+2 |
| | | | | | | This will allow us to (1) move field name handling out of the argument parser method, and also (2) add columns more easily. | ||||
| * | tor-netdoc: Have .reject_extra_args return a bespoke error | Ian Jackson | 2025-10-09 | 1 | -1/+1 |
| | | | | | | | | We're about to have some functions return ArgumentError and some ErrorProblem. We don't want to provide a conversion directly between these types, so instead introduce a new type that will be convertible to either. | ||||
| * | tor-netdoc: Introduce `NormalItemArgument` impl-enabler trait | Ian Jackson | 2025-10-08 | 1 | -1/+1 |
| | | | | | | This is currently used to enable `parse2::ItemArgumentParseable`. In a moment it will enable `build::ItemArgument` too. | ||||
| * | tor-netdoc: parse2 poc: impl Display for several types | Ian Jackson | 2025-10-08 | 1 | -1/+1 |
| | | |||||
| * | netdoc parse2: Fix Object handling (fmt) | Ian Jackson | 2025-09-29 | 1 | -2/+4 |
| | | |||||
| * | netdoc parse2: Fix Object handling | Ian Jackson | 2025-09-29 | 1 | -1/+2 |
| | | | | | | | | | | | 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`. | ||||
| * | netdoc parse2: Actually use ArgumentSetSelector, and test | Ian Jackson | 2025-09-29 | 1 | -1/+1 |
| | | | | | Without this, parsing of Option and Vec argument fields doesn't work. | ||||
| * | netdoc parse2: Use $P::Result throughout | Ian Jackson | 2025-09-29 | 1 | -0/+1 |
| | | | | | | This is needed when using these macros in a namespace with a local redefinition of `Result`. | ||||
| * | tor-netdoc: parse2: Provide flattening and NetdocParseableFields | Ian Jackson | 2025-09-02 | 1 | -1/+4 |
| | | |||||
| * | tor-netdoc: Rerun cargo fmt after rebase | Ian Jackson | 2025-08-14 | 1 | -2/+2 |
| | | |||||
| * | tor-netdoc: Introduce parse2, new parser | Ian Jackson | 2025-08-14 | 1 | -0/+44 |
| This isn't used anywhere yet. We're going to demonstrate it, and test the demo, in a moment. | |||||
