| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | tor-netdoc: ns Preamble: Use Constructor | Ian Jackson | 2026-04-21 | 4 | -1/+17 | |
| | | | ||||||
| * | | tor-netdoc: ns Preamble: use new deftly cfg approach | Ian Jackson | 2026-04-21 | 1 | -10/+8 | |
| | | | ||||||
| * | | tor-netdoc: DocRelayFlags: rename VoteRepr to NoImplicitRepr | Ian Jackson | 2026-04-21 | 3 | -5/+6 | |
| | | | ||||||
| * | | tor-netdoc: DocRelayFlags: Provide encoder | Ian Jackson | 2026-04-21 | 1 | -3/+37 | |
| | | | ||||||
| * | | tor-netdoc: DocRelayFlags: rename helper struct | Ian Jackson | 2026-04-21 | 2 | -8/+8 | |
| | | | | | | | | | This is going to be used for encoding too. | |||||
| * | | tor-netdoc: impl NetdocEncodableFields for ProtoStatuses | Ian Jackson | 2026-04-21 | 2 | -1/+16 | |
| | | | | | | | | | We don't need the helper struct for this. | |||||
| * | | tor-netdoc: Split out proto_statuses_parse2_encode module | Ian Jackson | 2026-04-21 | 1 | -9/+24 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to want this macrology to generate a encoder implmeentation too. It's most convenient to make this its own module, separating it from parse2_impls. Enable the module if encoding is enabled, decorating its parsing-related contents with the appropriate cfg. Use pub(super) to export the encoding-related imports, so that we don't end up with endlessly duplicated import lists. Now there is place where we can put the encoder. | |||||
| * | | tor-netdoc: impl ItemValueEncodable for tor_protover::Protocols | Ian Jackson | 2026-04-21 | 2 | -0/+14 | |
| | | | ||||||
| * | | tor-netdoc: impl ItemValueEncodable for NetParams<i32> | Ian Jackson | 2026-04-21 | 2 | -0/+23 | |
| | | | | | | | | | | | | | Start a new encode_impls module. The pub(super) will be used in a moment. | |||||
| * | | tor-netdoc: ns Lifetime: derive NetdocEncodableFields | Ian Jackson | 2026-04-21 | 2 | -0/+2 | |
| | | | ||||||
| * | | tor-netdoc: ns Lifetime: Use Constructor | Ian Jackson | 2026-04-21 | 2 | -5/+20 | |
| | | | ||||||
| * | | tor-netdoc: ns Lifetime: use new deftly cfg approach | Ian Jackson | 2026-04-21 | 1 | -3/+5 | |
| | | | | | | | | | This is what we did for authcert.rs and it worked well there. | |||||
| * | | tor-netdoc: ConsensusMethods: derive ItemValueEncodable | Ian Jackson | 2026-04-21 | 2 | -2/+4 | |
| | | | ||||||
| * | | tor-netdoc: Fix type of NotPresent items in ns Preamble | Ian Jackson | 2026-04-21 | 4 | -6/+9 | |
| | | | ||||||
| * | | tor-netdoc: Implement encoding traits for Arc<T> | Ian Jackson | 2026-04-21 | 3 | -0/+35 | |
| | | | ||||||
| * | | Merge branch 'parse2-more-debug' into 'main' | Clara Engler | 2026-04-21 | 5 | -16/+154 | |
| |\ \ | | | | | | | | | | | | | Add debugging support to ItemValueParseable derive See merge request tpo/core/arti!3881 | |||||
| | * | | tor-netdoc: Add debugging to ItemValueParseable, demo in test | Ian Jackson | 2026-04-13 | 2 | -2/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With cargo test --all-features -p tor-netdoc -- --no-capture test2 the output now contains, amongst many other things: netdoc TestItem parse: item start, "test-item", "N", Some("TEST OBJECT") netdoc TestItem parse: field needed, normal, args=1, "N" netdoc TestItem parse: field optional, normal, args=Option<_>, "" netdoc TestItem parse: field rest, normal, args=Vec<_>, "" netdoc TestItem parse: field object, object, object=1, Some(("TEST OBJECT", Ok(5))) netdoc TestItem parse: item complete Ok | |||||
| | * | | tor-netdoc: Add debugging to ItemValueParseable | Ian Jackson | 2026-04-13 | 1 | -1/+16 | |
| | | | | ||||||
| | * | | tor-netdoc: parse2 derives: use NetdocParseAnyCommon in ItemValueParseable | Ian Jackson | 2026-04-13 | 1 | -2/+1 | |
| | | | | | | | | | | | | | So far this just abolishes a duplicate P. | |||||
| | * | | tor-netdoc: parse2 derives: Break out NetdocParseAnyCommon | Ian Jackson | 2026-04-13 | 1 | -13/+21 | |
| | | | | | | | | | | | | | | | | | | | | | | We're going to want tio reuse dtrace from here in the ItemValueParseable derive (which doesn't use NetdocSomeItemsParseableCommon because it derives for one item type, not a document containing multiple items). | |||||
| | * | | tor-netdoc: parse2: with debug for items parsing, show multiplicity | Ian Jackson | 2026-04-13 | 1 | -0/+1 | |
| | | | | ||||||
| | * | | tor-netdoc: parse2 multiplicity: Add debugging methods to traits | Ian Jackson | 2026-04-13 | 2 | -0/+108 | |
| | | | | ||||||
| | * | | tor-netdoc: derives debug: Add a missing trait import | Ian Jackson | 2026-04-13 | 1 | -0/+2 | |
| | | | | | | | | | | | | | | | | | | | Without this adding `#[deftly(netdoc(debug))]` can fail to build, because the encoding module doesn't have `io::Write` in its `pub use`. (Unlike parse2, it doesn't have a separate macro prelude.) | |||||
| * | | | tor-netdoc: Support `#[deftly(netdoc(skip))]` in items | Ian Jackson | 2026-04-20 | 5 | -1/+18 | |
| | | | | | | | | | | | | | Ie for "arguments" that don't actually appear. | |||||
| * | | | tor-netdoc: Test for IPv6-mapped IPv4 address | Ian Jackson | 2026-04-20 | 1 | -0/+1 | |
| | | | | ||||||
| * | | | tor-netdoc: Test for `::` host address | Ian Jackson | 2026-04-20 | 1 | -0/+1 | |
| | | | | ||||||
| * | | | tor-netdoc: Make Nickname have its own parsing error type | Ian Jackson | 2026-04-20 | 6 | -17/+24 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | This will let us use it in more places, more sensibly. Sadly it means a lot of syntactic vinegar at many of the call sites in the old parser, which has very janky ideas about how errors should work. | |||||
| * | | | tor-netdoc: semver.md for InternetHost and Hostname | Ian Jackson | 2026-04-20 | 1 | -0/+1 | |
| | | | | ||||||
| * | | | tor-netdoc: Tests for InternetHost and Hostname | Ian Jackson | 2026-04-20 | 1 | -0/+65 | |
| | | | | ||||||
| * | | | tor-netdoc: Introduce InternetHost newtype | Ian Jackson | 2026-04-20 | 2 | -1/+52 | |
| | | | | | | | | | | | | | Tests will come in a moment. | |||||
| * | | | tor-netdoc: Introduce Hostname newtype | Ian Jackson | 2026-04-20 | 3 | -0/+82 | |
| | | | | | | | | | | | | | Tests will come in a moment. | |||||
| * | | | Merge branch 'p2-misc-exactly-1' into 'main' | Clara Engler | 2026-04-20 | 2 | -3/+6 | |
| |\ \ \ | |_|/ |/| | | | | | | | | tor-netdoc: derives: Three small improvements See merge request tpo/core/arti!3887 | |||||
| | * | | tor-netdoc: derives: Expect an intro item | Ian Jackson | 2026-04-14 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | This can't trigger, but when messing about with some new features, I messed up and got a syntax error here. Let's try this feature out, here. | |||||
| | * | | tor-netdoc: derives: Reformat a long line | Ian Jackson | 2026-04-14 | 1 | -2/+4 | |
| | | | | | | | | | | | | | No functional change. | |||||
| | * | | tor-netdoc: derives: Remove an otiose test | Ian Jackson | 2026-04-14 | 1 | -1/+1 | |
| | |/ | | | | | | | T_SIGNATURES is false, just above. | |||||
| * | | Merge branch 'parse2-fix-eh' into 'main' | Ian Jackson | 2026-04-14 | 1 | -1/+1 | |
| |\ \ | | | | | | | | | | | | | tor-netdoc: parse2: Fix error for invalid item argument See merge request tpo/core/arti!3879 | |||||
| | * | | tor-netdoc: parse2: Fix error for invalid item argument | Ian Jackson | 2026-04-14 | 1 | -1/+1 | |
| | |/ | | | | | | | When we can't parse a NormalItemArgument, that's Invalid, not Missing. | |||||
| * | | tor-netdoc: impl NormalItemArgument for B16 and B16U | Ian Jackson | 2026-04-14 | 1 | -0/+3 | |
| | | | | | | | | | | | I also searched this file for FromStr impls and these types were the only ones that ought to be NormalItemArgument but weren't. | |||||
| * | | tor-netdoc: Fix a slip in a doc comment | Ian Jackson | 2026-04-14 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-netdoc: Explain why the macro doesn't use hex::encode | Ian Jackson | 2026-04-14 | 1 | -0/+2 | |
| | | | ||||||
| * | | tor-netdoc: Fix slip in semver.md | Ian Jackson | 2026-04-14 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-netdoc: Use Transparent and derive Hash for RsaIdentity wrappers | Ian Jackson | 2026-04-14 | 2 | -8/+9 | |
| | | | ||||||
| * | | tor-netdoc: Use Transparent for SystemTime wrappers | Ian Jackson | 2026-04-14 | 2 | -4/+5 | |
| | | | ||||||
| * | | tor-netdoc: Use Transparent for Curve25519Public | Ian Jackson | 2026-04-14 | 2 | -1/+3 | |
| | | | ||||||
| * | | tor-netdoc: types/misc.rs: Have Transparent do From and Into | Ian Jackson | 2026-04-14 | 1 | -7/+19 | |
| | | | | | | | | | | | Unfortunately one derive can't invoke another, so we must open-code them, just like the other traits. | |||||
| * | | tor-netdoc: types/misc.rs: Break out Transparent derive module/macro | Ian Jackson | 2026-04-14 | 1 | -31/+83 | |
| | | | | | | | | | | | | | | | Nothing derives just Transparent yet. Mostly code motion, with some additional furniture and docs. Review with git show --color-moved. | |||||
| * | | tor-netdoc: types/misc.rs: Prepare message for Transparent derive | Ian Jackson | 2026-04-14 | 1 | -2/+2 | |
| | | | | | | | | | | | | | This error message is going to be used by both Transparent and BytesTransparent. Put it in the code that is going to be part of Transparent, and remove the macro name from it. | |||||
| * | | tor-netdoc: types/misc.rs: Remove a stray comma in a doc | Ian Jackson | 2026-04-14 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-netdoc: types/misc.rs: Use fmt and Display aliases | Ian Jackson | 2026-04-14 | 1 | -12/+12 | |
| | | | | | | | | | This reduces clutter some more. | |||||
| * | | tor-netdoc: types/misc.rs: Use FromStr alias | Ian Jackson | 2026-04-14 | 1 | -16/+18 | |
| | | | | | | | | | | | | | This is in the use's at the top of the file. If we `use super::*` (like we do in the newer modules): the code can get a lot more readable. | |||||
