aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'upgrade-weak-table' into 'main'opara2026-08-045-5/+5
|\ \ \ | | | | | | | | | | | | | | | | Upgrade to weak-table 0.4.0 See merge request tpo/core/arti!4278
| * | | Upgrade to weak-table 0.4.0Nick Mathewson2026-08-045-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Weak-table 0.4.0 replaces the backend with hashbrown for improved performance and correctness. It adds a bunch of APIs for parity with std::collections, and deprecates the risky `ahash` feature. (I'm the maintainer at this point.)
* | | | Merge branch 'consistent-rd-doclinks' into 'main'opara2026-08-041-37/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Make RouterDesc item docs consistent See merge request tpo/core/arti!4279
| * | | | tor-netdoc: Make RouterDesc item docs consistentClara Engler2026-08-041-37/+18
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now, the documentation for the items is inconsistent in the sense that some items contain specification links whereas others contain copies of the specification. This has historic reasons during the development, but ultimately links to the specification are superior, as they provide up-to-date information and are the canonical source.
* | | | Merge branch 'move-routerdesc' into 'main'Ian Jackson2026-08-046-362/+373
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disintegrate types::misc::routerdesc Closes #2555 See merge request tpo/core/arti!4276
| * | | | tor-netdoc: Update semver.mdClara Engler2026-08-041-0/+1
| | | | |
| * | | | tor-netdoc: Run cargo-fmt subsequentiallyClara Engler2026-08-044-9/+15
| | | | | | | | | | | | | | | | | | | | No functional change, purely formatting.
| * | | | tor-netdoc: Move misc::routerdesc into types::descriptorClara Engler2026-08-045-178/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit moves the remainder of misc::routerdesc into a new module called types::descriptor, which contains the shared types needed in router descriptors as well as extra-info documents. Please review with --color-moved --color-moved-ws=allow-indentation-change, as this is mainly code motion, except for parts where inputs and type aliases had to be fixed.
| * | | | tor-netdoc: Split types::misc::routerdesc into routerdescClara Engler2026-08-042-181/+177
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit moves all non-signature related parts from types::misc::routerdesc into doc::routerdesc, because they are only required for that specific netdoc. The signature related parts will be moved in the next commits, as we will need those for extra info documents as well. Review with --color-moved --color-moved-ws=allow-indentation-change. This is mostly code motion with small import/type name fixes being the notable exception.
* | | | Merge branch 'da-microdesc-calc' into 'main'Ian Jackson2026-08-047-11/+603
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | tor-dirauth: Calculate microdescriptors See merge request tpo/core/arti!4264
| * | | | tor-dirauth: tests: Unit test for microdescriptor calculation coalesceIan Jackson2026-08-041-0/+52
| | | | |
| * | | | tor-dirauth: tests: Provide SupportedConsensusMethod::new_uncheckedIan Jackson2026-08-041-0/+8
| | | | |
| * | | | tor-dirauth: tests: Test error handling of all-supported-microdescsIan Jackson2026-08-041-1/+25
| | | | |
| * | | | tor-dirauth: tests: Test computation of all microdescriptorsIan Jackson2026-08-041-0/+20
| | | | |
| * | | | tor-dirauth: Function for computing all supported microdescriptorsIan Jackson2026-08-042-1/+87
| | | | |
| * | | | tor-dirauth: tests: Test microdescriptor calculation against live dataIan Jackson2026-08-043-0/+68
| | | | |
| * | | | tor-dirauth: Implement main microdescriptor calculation functionIan Jackson2026-08-045-4/+58
| | | | | | | | | | | | | | | | | | | | This is actually quite simple now.
| * | | | tor-dirauth: Use TrackedConsensusMethod in summarise_policy_v4_approximateIan Jackson2026-08-041-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | It doesn't actually use the value, but its call site is going to have one of these, not a SupportedConsensusMethod.
| * | | | tor-dirauth: Introduce new TrackedConsensusMethod typeIan Jackson2026-08-044-3/+278
| | | | |
| * | | | tor-dirauth: Rework tor-netdoc dependencyIan Jackson2026-08-041-1/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | No longer request "experimental" - we don't need it. We do need "testing" but only for our own tests, so that can go in dev-dependencies. Enable retain-unknown, which we'll need.
* | | | Merge branch 'cc-event-counters' into 'main'opara2026-08-041-6/+7
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | tor-proto: Fix cc vegas counter updates on clock stall Closes #2651 See merge request tpo/core/arti!4256
| * | | tor-proto: fix cc vegas counter updates on clock stallSteven Engler2026-07-301-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pseudocode says: ```text if next_cc_event: next_cc_event-- if next_cwnd_event: next_cwnd_event-- if clock_stalled_or_jumped: inflight -= 'cc_sendme_inc' return ``` but we were previously decrementing these after the return rather than before.
* | | | proto: Remove a now-done TODOGabriela Moldovan2026-08-041-3/+0
| | | | | | | | | | | | | | | | We now have `add_relay_ent()` for this, so we can remove the TODO.
* | | | proto: Rename "hs" to "hc"Gabriela Moldovan2026-08-042-3/+3
| |/ / |/| | | | | | | | | | | I think this might have been c&p from the half-stream code ("hs" = "half-stream"). "hc" ("half-circuit") seems like a better name.
* | | Merge branch 'accumulator-rd-verify' into 'main'Clara Engler2026-08-041-98/+74
|\ \ \ | | | | | | | | | | | | | | | | tor-netdoc: Use TimeRangeBoundBuilder for verification See merge request tpo/core/arti!4265
| * | | tor-netdoc: Mark RouterDesc verification as completeClara Engler2026-08-031-4/+1
| | | |
| * | | tor-netdoc: Run cargo-fmtClara Engler2026-08-031-68/+68
| | | | | | | | | | | | | | | | | | | | No functional change, please review with --minimal --color-moved --color-moved-ws=allow-indentation-change.
| * | | tor-netdoc: Use TimeRangeBoundBuilder for verificationClara Engler2026-08-031-34/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit utilizes TimeRangeBoundBuilder for the verification of router descriptors by replacing all calls of `.dangerously_unwrap_timely()` with `.unwrap_with()`, while also wrapping the actual logic inside a closure which is then called by `TimeRangeBound::build_intersect()` in the end. Keep in mind, that the replacement also leads to the removal of the use of tuples, as `.unwrap_with()` only returns the actual item.
* | | | maint: remove semver.md filesSteven Engler2026-08-038-52/+0
| | | |
* | | | Merge branch 'reldate' into 'main'Nick Mathewson2026-08-031-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti-client: Update release date See merge request tpo/core/arti!4269
| * | | | arti-client: update release dateSteven Engler2026-08-031-1/+1
| | | | |
* | | | | Upgraded dependencies for equix benchSteven Engler2026-08-031-80/+98
| | | | |
* | | | | Upgraded dependencies for hashx benchSteven Engler2026-08-031-79/+97
| | | | |
* | | | | Update Cargo.lock filesSteven Engler2026-08-032-3/+3
| | | | |
* | | | | Bump versions for crates with non-functional changesSteven Engler2026-08-0311-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```bash bump=(caret equix fs-mistrust fslock-guard futures-copy oneshot-fused-workaround retry-error safelog slotmap-careful test-temp-dir web-time-compat) ./maint/bump-nodep "${bump[@]}" ```
* | | | | Bump patch version for hashx crateSteven Engler2026-08-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```bash cargo set-version --bump patch -p hashx ```
* | | | | Bump version for arti crateSteven Engler2026-08-033-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```bash cargo set-version --bump patch -p arti ```
* | | | | Bump versions for tor-* and arti-* cratesSteven Engler2026-08-0357-542/+542
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | ```bash readarray -t bump < <(maint/list-crates | grep -P '^tor-|^arti-') for crate in "${bump[@]}"; do cargo set-version --bump minor -p "${crate}"; done ```
* | | | proto: Update semver with the changes to the loggingDavid Goulet2026-08-031-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | proto: Move comment to the right placeDavid Goulet2026-08-031-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | proto: Add {backward|forward} prefix to circ_id in logsDavid Goulet2026-08-0311-35/+35
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | proto: Rename uniq_id to circ_unique_id mostly in loggingDavid Goulet2026-08-0314-55/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have decided that instead of "uniq_id" in logging, we'll use the "<domaine>-[<type>]-id" syntax to indicate who is that unique ID. This commit only renames circuit's unique ID to "circ_uniq_id". Signed-off-by: David Goulet <[email protected]>
* | | | proto: Log both UniqId and CircId when possibleDavid Goulet2026-08-0315-65/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit only affects logging. Whenever possible, log both the UniqId and CircId. This also changes the log lines which is now "uniq_id=" and "circ_id=" as the UniqId is internal and circ_id (CircId) is protocol level. Signed-off-by: David Goulet <[email protected]>
* | | | proto: Rename CircId and UniqId variable nameDavid Goulet2026-08-038-26/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A CircId is now a circ_id and a UniqId is a unique_id so we stop confusing them in the code. Furthermore, channel_id that are CircId are now circ_id. Channel IDs are different and encoded internally into a UniqId. This is the first step to clarify semantic before we change the logging to log both unique ID and circ ID. No behavior change. Signed-off-by: David Goulet <[email protected]>
* | | | maint: ran 'cargo sort' in arti-dirauth and tor-dirauthSteven Engler2026-08-032-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm not actually sure what I did here. I was getting a lot of confusing results from 'cargo sort' and 'maint/cargo-sort', so I ran a bunch of commands until 'maint/cargo-sort' was okay. ('maint/cargo-sort' still shows some errors, but not in arti-dirauth anymore.) But as long as the 'maint/cargo-sort' in CI is okay with the changes, then I think it's fine.
* | | | maint: ran fixup-featuresSteven Engler2026-08-033-2/+4
| | | |
* | | | maint: ran 'cd crates/equix/bench && cargo update -p proc-macro-error3'Steven Engler2026-08-031-13/+23
| | | |
* | | | maint: ran 'cd crates/hashx/bench && cargo update -p proc-macro-error3'Steven Engler2026-08-031-12/+22
|/ / /
* | | Merge branch 'writer-handle' into 'main'Ian Jackson2026-08-031-23/+120
|\ \ \ | | | | | | | | | | | | | | | | arti-dirauth: FilenameOrStdio: Allow incremental writing See merge request tpo/core/arti!4253
| * | | arti-dirauth: Expand on a doc commentIan Jackson2026-08-031-0/+1
| | | |