| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | | tor-netdoc: relay families: Move TODO out of rustdoc | Ian Jackson | 2026-06-22 | 1 | -2/+2 | |
| | | | | ||||||
| * | | | tor-netdoc: Microdesc: derive Constructor | Ian Jackson | 2026-06-22 | 3 | -2/+12 | |
| | | | | ||||||
| * | | | tor-netdoc Micordesc: Make intro item type public | Ian Jackson | 2026-06-22 | 2 | -6/+7 | |
| | | | | | | | | | | | | | | | | We don't need the type to be private. Indeed, we'd like it not to be to make Microdesc construction with Constructor regular | |||||
| * | | | tor-netdoc Micordesc: rename the intro item type | Ian Jackson | 2026-06-22 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | "OnionKeyIntro" is particularly odd. Mostly people won't need to refer to this, anyway. | |||||
| * | | | tor-netdoc test: Add a round-trip test for microdescriptors | Ian Jackson | 2026-06-22 | 1 | -1/+12 | |
| | | | | ||||||
| * | | | tor-netdoc: Avoid encoding default values in microdescs | Ian Jackson | 2026-06-22 | 1 | -4/+4 | |
| | | | | ||||||
| * | | | tor-netdoc: encode derive: New default(skip) feature | Ian Jackson | 2026-06-22 | 4 | -0/+72 | |
| | | | | | | | | | | | | | This lets us skip fields which have the default values. | |||||
| * | | | tor-netdoc: encode derive: New default(skip) feature (pre-fmt) | Ian Jackson | 2026-06-22 | 1 | -3/+7 | |
| | | | | ||||||
| * | | | tor-netdoc: derive encoding for microdescriptors | Ian Jackson | 2026-06-22 | 3 | -4/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | All these types already have parsing derives. The encoding isn't quite right yet. It's legal, but doesn't match C Tor as well as we'd like. | |||||
| * | | | tor-netdoc: Add a TODO for use of include_str | Ian Jackson | 2026-06-22 | 1 | -0/+2 | |
| | | | | ||||||
| * | | | tor-netdoc: embedded auth certs: Use real vote type, not poc (fmt) | Ian Jackson | 2026-06-22 | 1 | -3/+1 | |
| | | | | ||||||
| * | | | tor-netdoc: embedded auth certs: Use real vote type, not poc | Ian Jackson | 2026-06-22 | 1 | -3/+1 | |
| | | | | ||||||
| * | | | tor-netdoc tests: test vote roundtrip with testdata2 | Ian Jackson | 2026-06-22 | 2 | -27/+83 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use roundtrip_netstatus, which does nearly all of the work for us. But for it to round-trip, we must do a bunch of fudging. This replaces the old parse2 vote test case (which used the poc type). The test case has some adjustments to cope with missing fields. Move the TODOs for those fields to the test case, so that they're on lines that will be deleted when the fields are implemented. | |||||
| * | | | tor-netdoc tests: Adjust `m` placement in routerdesc | Ian Jackson | 2026-06-22 | 1 | -0/+12 | |
| | | | | ||||||
| * | | | tor-netdoc tests: Adjust shared-rand-* base64 padding | Ian Jackson | 2026-06-22 | 1 | -0/+13 | |
| | | | | | | | | | | | | | | | | | | | Right now we're working on votes, but the same issue arises in consensuses; we just haven't noticed yet because the testdata2 consensus doesn't have an SRV. | |||||
| * | | | tor-netdoc tests: Make adjust_exp into a trait method (fmt) | Ian Jackson | 2026-06-22 | 1 | -25/+25 | |
| | | | | ||||||
| * | | | tor-netdoc tests: Make adjust_exp into a trait method | Ian Jackson | 2026-06-22 | 1 | -9/+33 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | In the future (not quite yet in this branch), there will be tests that want to use roundtrip_netstatus for other test files. We'll want to be able to reuse the per-document-specific munging. So make that into a trait. And document roundtrip_netstatus. | |||||
| * | | | tor-netdoc tests: Make regsub take a Replacer | Ian Jackson | 2026-06-22 | 1 | -1/+1 | |
| | | | | | | | | | | | | | This will let us do more exciting munging more clearly. | |||||
| * | | | tor-netdoc tests: roundtrip_netstatus: Improve an error message | Ian Jackson | 2026-06-22 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | tor-netdoc tests: roundtrip_netstatus: Add a useful debug bound | Ian Jackson | 2026-06-22 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | tor-netdoc tests: netstatus round trips: allow adjusting now | Ian Jackson | 2026-06-22 | 1 | -1/+5 | |
| | | | | | | | | | | | | | | | | The vote test files are for the next consensus interval, so we need to verify them at a slightly future time. | |||||
| * | | | tor-netdoc tests: Test verification of votes, error cases | Ian Jackson | 2026-06-22 | 3 | -1/+85 | |
| | | | | ||||||
| * | | | tor-netdoc: Implement verification for votes | Ian Jackson | 2026-06-22 | 2 | -3/+139 | |
| |/ / | ||||||
| * | | tor-netdoc: Use format_args! instead of format! | Clara Engler | 2026-06-18 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-netdoc: Use chain!() instead of push | Clara Engler | 2026-06-18 | 1 | -6/+7 | |
| | | | | | | | | | Replaces a push by using the chain!() macro from itertools. | |||||
| * | | tor-netdoc: Add test for default deny encoding of AddrPolicy | Clara Engler | 2026-06-18 | 1 | -0/+28 | |
| | | | ||||||
| * | | tor-netdoc: Round-trip encoding test for AddrPolicy | Clara Engler | 2026-06-18 | 1 | -1/+8 | |
| | | | ||||||
| * | | tor-netdoc: Derive NetdocEncodable in unit test | Clara Engler | 2026-06-18 | 1 | -1/+1 | |
| | | | ||||||
| * | | tor-netdoc: Replace Ignored with () in AddrPolicy test | Clara Engler | 2026-06-18 | 1 | -5/+2 | |
| | | | | | | | | | () implements encodable which we will derive soon. | |||||
| * | | tor-netdoc: Add NetdocEncodableFields for AddrPolicy | Clara Engler | 2026-06-18 | 2 | -0/+36 | |
| | | | | | | | | | | | This commit implements NetdocEncodableFields for AddrPolicy in a non-trivial fashion. A unit test will be added in a moment. | |||||
| * | | tor-netdoc: Make some policy methods const | Clara Engler | 2026-06-18 | 2 | -3/+3 | |
| |/ | | | | | | This commit makes some policy related constructor functions constant, so we can use them in const expressions, which will be required for the next commit. | |||||
| * | Merge branch 'msrv-1.91' into 'main' | gabi-250 | 2026-06-18 | 1 | -1/+1 | |
| |\ | | | | | | | | | Bump MSRV to 1.91 See merge request tpo/core/arti!4105 | |||||
| | * | Bump MSRV to 1.91 | Clara Engler | 2026-06-15 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit bumps the MSRV to 1.91 which was released on 2025-10-30. The Cargo.toml files were updated as follows: ```sh git ls-files | \ grep ".*Cargo\.toml$" | \ xargs sed -i '' 's/^rust-version = "1\.89"$/rust-version = "1\.91"/g' ``` The following files were updated manually: ``` modified: .gitlab-ci.yml modified: README.md modified: flake.nix modified: maint/docker-android/Dockerfile ``` | |||||
| * | | Merge branch 'derive-depr' into 'main' | Clara Engler | 2026-06-18 | 2 | -0/+5 | |
| |\ \ | | | | | | | | | | | | | tor-netdoc: derives: allow handling deprecated fields See merge request tpo/core/arti!4118 | |||||
| | * | | tor-netdoc: constructor derive: allow setting deprecated fields | Ian Jackson | 2026-06-16 | 1 | -0/+1 | |
| | | | | | | | | | | | | | We must generally set such a field to the default. | |||||
| | * | | tor-netdoc: parse2 derive: allow setting deprecated fields | Ian Jackson | 2026-06-16 | 1 | -0/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to derive from a struct with deprecated fields, without triggering the warning. This doesn't yet treat encoding as yet, because the only deprecated field I encountered was `skip` which means the derived encoder never mentions it. | |||||
| * | | | tor-netdoc: votes: use EmbeddedCert for the authhcert | Ian Jackson | 2026-06-17 | 2 | -2/+6 | |
| | | | | ||||||
| * | | | tor-netdoc: EmbeddedCert: support whole netdocs (for AuthCert) (fmt) | Ian Jackson | 2026-06-17 | 1 | -2/+7 | |
| | | | | ||||||
| * | | | tor-netdoc: EmbeddedCert: support whole netdocs (for AuthCert) | Ian Jackson | 2026-06-17 | 2 | -2/+34 | |
| | | | | ||||||
| * | | | Merge branch 'consensus-roundtrip' into 'main' | Ian Jackson | 2026-06-17 | 9 | -100/+312 | |
| |\ \ \ | | | | | | | | | | | | | | | | | Implement encoding and verification for consensuses, and add a round trip test See merge request tpo/core/arti!4100 | |||||
| | * | | | tor-netdoc: consensus_threshold: return a RangeFrom | Ian Jackson | 2026-06-17 | 2 | -8/+14 | |
| | | | | | ||||||
| | * | | | tor-netdoc: Document new facilities | Ian Jackson | 2026-06-17 | 1 | -0/+2 | |
| | | | | | ||||||
| | * | | | tor-netdoc: tests: ns parse2 test: Round trip an md consensus | Ian Jackson | 2026-06-17 | 1 | -9/+17 | |
| | | | | | ||||||
| | * | | | tor-netdoc: tests: ns parse2 test: Make roundtrip test generic (fmt) | Ian Jackson | 2026-06-17 | 1 | -19/+16 | |
| | | | | | ||||||
| | * | | | tor-netdoc: tests: ns parse2 test: Promote a fudge | Ian Jackson | 2026-06-17 | 1 | -7/+8 | |
| | | | | | | | | | | | | | | | | | Microdescriptor consensuses are affected by this same anomaly. | |||||
| | * | | | tor-netdoc: tests: ns parse2 test: Make roundtrip test generic | Ian Jackson | 2026-06-17 | 1 | -15/+42 | |
| | | | | | | | | | | | | | | | | | This will let us test microdescriptors and votes with the same code. | |||||
| | * | | | tor-netdoc: tests: ns parse2 test: Round trip a plain consensus | Ian Jackson | 2026-06-17 | 2 | -2/+43 | |
| | | | | | ||||||
| | * | | | tor-netdoc: tests: Add regsub utility function | Ian Jackson | 2026-06-17 | 2 | -0/+9 | |
| | | | | | | | | | | | | | | | | | | | | | We're going to need this for fudges in round trip tests of consensuses etc. | |||||
| | * | | | tor-netdoc: tests: ns parse2 test: Mess with authcerts in a block (fmt) | Ian Jackson | 2026-06-17 | 1 | -10/+10 | |
| | | | | | ||||||
| | * | | | tor-netdoc: tests: ns parse2 test: Mess with authcerts in a block | Ian Jackson | 2026-06-17 | 1 | -2/+4 | |
| | | | | | | | | | | | | | | | | | | | | | This avoids rebinding file and text and input to the authcerts. We're going to want to use at least some of those values later. | |||||
