summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | tor-guardmgr: Implement launch_background_tasks.Gabriela Moldovan2024-04-051-4/+35
| | | |
| * | | tor-circmgr: Call VanguardMgr::launch_background_tasks.Gabriela Moldovan2024-04-052-1/+10
| | | |
| * | | tor-guardmgr: Give VanguardSets a target set size.Gabriela Moldovan2024-04-052-4/+18
| | | | | | | | | | | | | | | | | | | | The target is the number of vanguards the `VanguardMgr`s will try to maintain in the `VanguardSet`.
| * | | tor-guardmgr: Derive getters for VanguardParams.Gabriela Moldovan2024-04-051-1/+7
| | | |
| * | | tor-guardmgr: Pass an rng to select_vanguard.Gabriela Moldovan2024-04-053-5/+9
| | | | | | | | | | | | | | | | | | | | This function will need to randomly select a vanguard, so it needs an `Rng`.
| * | | tor-guardmgr: Give VanguardMgr a handle to the runtime (fmt).Gabriela Moldovan2024-04-053-4/+19
| | | |
| * | | tor-guardmgr: Give VanguardMgr a handle to the runtime.Gabriela Moldovan2024-04-055-22/+22
| | | |
| * | | tor-guardmgr: Implement TryFrom<&NetParameters> for VanguardParams.Gabriela Moldovan2024-04-051-3/+18
| | | |
| * | | tor-guardmgr: Fix typo in VanguardSet docs.Gabriela Moldovan2024-04-051-1/+1
| | | |
| * | | tor-circmgr: Remove addressed TODO.Gabriela Moldovan2024-04-051-2/+0
| | |/ | |/| | | | | | | This was addressed in !2046, but I forgot to remove the TODO.
* | | Doc: tweak documentation on NetDir::id*listed functionsNick Mathewson2024-04-101-10/+9
| | | | | | | | | | | | | | | Previously they were a bit confusing, and the public function explained its behavior in terms of the private one.
* | | Doc: Add xref from NetDir::by_ids to ids_listed.Nick Mathewson2024-04-101-0/+7
| | | | | | | | | | | | | | | | | | | | | Explain that `by_ids` isn't what you want if you need to know whether a relay _definitely_ doesn't exist. Closes #1365
* | | tor-keymgr: added initial implementation for in-memory ArtiEphemeralKeystoreRichard Pospesel2024-04-105-4/+324
| | |
* | | dirauth: New tor26 v3 identityDavid Goulet2024-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | C-tor commit for this change: e3e4fa35e8b9368ac549db4da3240aba1ee3054e Signed-off-by: David Goulet <[email protected]>
* | | tor-keymgr: Export KeyMgrBuilderError.Gabriela Moldovan2024-04-081-1/+1
|/ / | | | | | | | | | | `KeyMgrBuilderError` is used in `KeyMgrBuilder`'s public API. See https://gitlab.torproject.org/tpo/core/arti/-/issues/1358#note_3016025
* | Fix some rustdoc links and copypaste errors in tor-netdir.Nick Mathewson2024-04-042-5/+9
| |
* | tor-linkspec: Suppress clippy false positive (link ticket)Ian Jackson2024-04-031-1/+1
| |
* | tor-linkspec: Suppress clippy false positiveIan Jackson2024-04-031-0/+1
| |
* | tor-netdir: Abolish Relay::has_same_relay_idsIan Jackson2024-04-033-12/+5
| | | | | | | | This was an open-coded specialisation. Remove the one call site.
* | tor-linkspec: Use derive-deftly rather than strum for same_relay_idsIan Jackson2024-04-034-1/+43
| |
* | tor-linkspec: Use RelayIdType::all_types rather than ::iterIan Jackson2024-04-031-2/+2
| | | | | | | | | | This will make it slightly easier to find these call sites if we want to change them in the future.
* | Merge branch '504-cleanup-part1' into 'main'Nick Mathewson2024-04-0312-250/+346
|\ \ | | | | | | | | | | | | Move fiddly Relay functionality into a RelayDetails type. See merge request tpo/core/arti!2057
| * | Comment fixes in RelayDetails refactor.Ian Jackson2024-04-031-2/+4
| | |
| * | Add a semver.md file so we do not forget to put "breaking!" in changelog.Nick Mathewson2024-03-281-0/+1
| | |
| * | exitpath: Refactor a test to use tor-relay-usage.Nick Mathewson2024-03-281-20/+14
| | |
| * | Move rs_is_dircache to details.rsNick Mathewson2024-03-282-9/+9
| | |
| * | Rename `Relay::same_relay` and make it private.Nick Mathewson2024-03-283-10/+8
| | | | | | | | | | | | | | | Everybody outside of tor-netdir should use HasRelayIds::same_relay_ids, whose intent is clearer.
| * | Remove all *Relay is_flagged_guard methods.Nick Mathewson2024-03-284-31/+10
| | | | | | | | | | | | These were only used for testing.
| * | Remove temporary functions in CheckedRelay.Nick Mathewson2024-03-2810-203/+122
| | |
| * | Remove temporary functions in UncheckedRelay.Nick Mathewson2024-03-282-27/+8
| | |
| * | Move most functions from *Relay to *RelayDetailsNick Mathewson2024-03-282-22/+166
| | | | | | | | | | | | | | | | | | | | | | | | In *RelayDetails, this is just a matter of changing a bunch of `self`s to `self.0`. Additionally, I've added temporary stub functions to delegate to the new functions.
| * | Relocate declarations of *Relay methods to details.rsNick Mathewson2024-03-282-129/+141
| | | | | | | | | | | | This is 99% code movement.
| * | Add low_level_details to {Unchecked,}Relay.Nick Mathewson2024-03-272-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm going to use this wrapper type to hide checks that should mostly not be used without careful thinking. There are also comments here explaining when you'd want to use these types, and when you shouldn't. Part of #504.
* | | Merge branch 'fix_relaymsg_fuzzer' into 'main'Nick Mathewson2024-04-032-4/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix compilation for relaymsg fuzzer Closes #1349 See merge request tpo/core/arti!2069
| * | | Fix compilation for relaymsg fuzzerNick Mathewson2024-04-022-4/+10
| | | | | | | | | | | | | | | | This broke when we changed the relaymsg api.
* | | | Merge branch 'deftly' into 'main'Ian Jackson2024-04-0330-244/+245
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Switch to derive-deftly See merge request tpo/core/arti!2066
| * | | | derive-deftly: Change some docs referencesIan Jackson2024-04-035-9/+9
| | | | | | | | | | | | | | | | | | | | Found by "git grep adhoc" and manual inspection.
| * | | | Apply import alphabetisation churnIan Jackson2024-04-032-2/+2
| | | | |
| * | | | tor-rtmock: Remove a todo commentIan Jackson2024-04-031-5/+0
| | | | | | | | | | | | | | | | | | | | derive-deftly 0.10.x rejects unrecognised `#[deftly]` attributes.
| * | | | derive-deftly: Call pub_template_semver_checkIan Jackson2024-04-032-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a new feature in d-d 0.10.0. Our currrent semver policy doesn't care about this, but let's not encode that property in the tree and leave ourselves a booby-trap.
| * | | | Switch to derive-deftlyIan Jackson2024-04-0329-234/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the combination of a number of separate commits, many of which were generated by seddery, and then rebased and squashed. Cargo.toml perl -i~ -pe 's{^derive-adhoc}{derive-deftly = "0.10"}' crates/*/Cargo.toml (not regenerated during rebase) update Cargo.lock `cargo fetch` without --locked (regenerated during rebase) seddery git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{^use derive_adhoc}{use derive_deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bdefine_derive_adhoc\b}{define_derive_deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bAdhoc\b}{Deftly}g if m{derive}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[derive_adhoc\b}{#[derive_deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{use derive_adhoc}{use derive_deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc\b}{derive_deftly_adhoc} if m{use.*deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc!}{derive_deftly_adhoc!}' (not regenerated during rebase) Manually add `#[derive_deftly_adhoc]` where needed. seddery git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[adhoc\b}{#[deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc_template}{derive_deftly_template}' (not regenerated during rebase) Manually fix up an import Manually update some builder attrs Manually fix up tor_rtmock::time_core This was missed in my seddery, due to me rebasing the branch and not redoing the seddery.
* | | | | Merge branch 'finish-backoff-refactor' into 'main'Nick Mathewson2024-04-022-31/+126
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-hsservice: Use single_attempt_timeout in backoff Runner impl. Closes #1259 See merge request tpo/core/arti!2064
| * | | | | tor-hsservice: Move optional timeout to optionally_timeout().Gabriela Moldovan2024-04-021-7/+32
| | | | | | | | | | | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2064#note_3014793
| * | | | | tor-hsservice: s/timeout/overall_timeout for clarity.Gabriela Moldovan2024-04-021-2/+2
| | | | | |
| * | | | | tor-hsservice: Add a test for the backoff runner's single_attempt_timeout().Gabriela Moldovan2024-04-021-0/+51
| | | | | |
| * | | | | tor-hsservice: Use single_attempt_timeout in backoff Runner impl (fmt).Gabriela Moldovan2024-04-021-10/+10
| | | | | |
| * | | | | tor-hsservice: Use single_attempt_timeout in backoff Runner impl.Gabriela Moldovan2024-04-022-19/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | !2024 introduced `BackoffSchedule::single_attempt_timeout()`, partially implementing #1259. This completes the implementation by moving the per-iteration timeout from the publisher reactor to `backoff::Runner`. Addresses https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2024?commit_id=a4f2bf5cb7d4027a49b74ec5a5298f7b9a3cf62e#note_3005097 Note: the `if should_retry` block is intentionally misindented, to make reviewing the actual changes easier. A future commit will fix the indentation. I originally wanted to suggest reviewing this commit using `--ignore-space-change`, but I found that it makes things a bit confusing (it shows some funky indentation around the parts that have both whitespace changes and modifications). Closes #1259
* | | | | | Merge branch 'unmanaged-proxy-config-test' into 'main'Nick Mathewson2024-04-024-10/+63
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test (and small cleanups) for Transport configuration Closes #1333 See merge request tpo/core/arti!2056
| * | | | | Add a test for transport configurationNick Mathewson2024-04-021-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Previously, nothing actually parsed these values in our configuration.) Closes #1333.
| * | | | | example-config: Indent transport argumentsNick Mathewson2024-04-021-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | This will make it possible for our tests to pull them out.