summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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.
| * | | | | ptmgr: Use impl_standard_builder for TransportConfigNick Mathewson2024-04-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | (This is !Default, since there is no default TransportConfig.)
| * | | | | Make TorClientConfig implement AsRef<BridgesConfig>Nick Mathewson2024-04-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | I believe this is how we expose the parts of TorClientConfig?
* | | | | | remove unused dependenciestrinity-1686a2024-04-0218-52/+2
|/ / / / / | | | | | | | | | | | | | | | Edited-by: Nick Mathewson <[email protected]>
* | / / / Remove semver.md files from arti-1.2.1 releaseNick Mathewson2024-04-027-18/+0
| |/ / / |/| | |
* | | | Run cargo update in {equix,hashx}/benchNick Mathewson2024-04-022-418/+326
| | | |
* | | | Bump arti crate to 1.2.1Nick Mathewson2024-04-023-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with ``` cargo set-version -p arti --bump patch ```
* | | | Update unstable `tor/arti-*` crates to 0.17.0.Nick Mathewson2024-04-0245-361/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with: ``` CRATES=" tor-basic-utils tor-async-utils tor-error tor-config tor-events tor-units tor-geoip tor-rtcompat tor-rtmock tor-log-ratelim tor-rpcbase tor-llcrypto tor-protover tor-bytes tor-hscrypto tor-hspow tor-socksproto tor-checkable tor-cert tor-linkspec tor-cell tor-proto tor-netdoc tor-consdiff tor-netdir tor-relay-selection tor-congestion tor-persist tor-chanmgr tor-ptmgr tor-guardmgr tor-circmgr tor-dirclient tor-dirmgr tor-keymgr tor-hsclient tor-hsservice tor-hsrproxy arti-client arti-rpcserver arti-config arti-hyper arti-bench arti-testing " for crate in $CRATES; do cargo set-version -p "$crate" 0.17.0 done ```
* | | | Bump patchlevel versions on non-{tor/arti} crates.Nick Mathewson2024-04-0232-46/+46
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These have all had backward-compatible changes. Generated with: ``` cargo set-version --bump patch -p fs-mistrust cargo set-version --bump patch -p test-temp-dir cargo set-version --bump patch -p fslock-guard cargo set-version --bump patch -p hashx cargo set-version --bump patch -p equix cargo set-version --bump patch -p caret cargo set-version --bump patch -p safelog cargo set-version --bump patch -p retry-error ```
* | | Merge branch 'time' into 'main'Ian Jackson2024-04-025-89/+147
|\ \ \ | | | | | | | | | | | | | | | | tor-rtmock: Introduce MockTimeCore See merge request tpo/core/arti!2052
| * | | tor-rtmock: Change word in commentIan Jackson2024-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | This was incorrect usage, as pointed out in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2052#note_3012727
| * | | tor-rtmock: Use MockTimeCore in time.rs too (fmt)Ian Jackson2024-03-251-6/+12
| | | |
| * | | tor-rtmock: Use MockTimeCore in time.rs tooIan Jackson2024-03-251-23/+18
| | | |
| * | | tor-rtmock: Introduce MockTimeCoreIan Jackson2024-03-252-25/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It bothered me that when I added a `MockCoarseTimeProvider` to the mock time providers, I had to manually grep to check that there weren't places the time was updated where I ought to also update the coarse time. Prove that the code is right by hiding all the times together in a struct that prevents un-synchronised updates. This is part 1, where we move the fields from simple_time::State to the new struct.
| * | | tor-rtmock: time_core: rename from coarse_time (fmt)Ian Jackson2024-03-251-1/+1
| | | |
| * | | tor-rtmock: time_core: rename from coarse_timeIan Jackson2024-03-254-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | We're going to put more in here. (Yes, I know we just invented this...)
* | | | Run "fixup-features" in preparation for next release.Nick Mathewson2024-03-287-7/+7
| |/ / |/| |
* | | Merge branch 'netdir-params-links' into 'main'Alexander Færøy2024-03-271-3/+3
|\ \ \ | | | | | | | | | | | | | | | | tor-netdir: Fix broken links in NetParameters docs. See merge request tpo/core/arti!2054
| * | | tor-netdir: Fix broken links in NetParameters docs.Gabriela Moldovan2024-03-261-3/+3
| | | | | | | | | | | | | | | | Spotted in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2053#note_3012632
* | | | Fix note in config that claimed onion services weren't implementedNick Mathewson2024-03-271-1/+4
|/ / / | | | | | | | | | | | | Instead, link to documentation, and give the warning about their security.
* | | Merge branch 'vanguard-params' into 'main'gabi-2502024-03-262-0/+89
|\ \ \ | |_|/ |/| | | | | | | | tor-netdir: Add the vanguard params to NetParameters. See merge request tpo/core/arti!2053
| * | tor-guardmgr: Replace From impl with from_net_parameter constructor.Gabriela Moldovan2024-03-261-2/+8
| | |
| * | tor-netdir: Use IntegerSeconds for the vanguard lifetime params.Gabriela Moldovan2024-03-261-4/+4
| | |
| * | tor-netdir: Use consistent termninology in the vanguard param docs.Gabriela Moldovan2024-03-261-6/+6
| | |
| * | tor-netdir: Fix torspec links in vanguard param docs.Gabriela Moldovan2024-03-261-8/+8
| | |
| * | tor-guardmgr: Implement From<BoundedInt32> for VanguardMode.Gabriela Moldovan2024-03-261-0/+13
| | | | | | | | | | | | | | | We'll need this to convert the `vanguard_enabled` and `vanguard_hs_service` net params to a `VanguardMode.
| * | tor-netdir: Add the vanguard params to NetParameters.Gabriela Moldovan2024-03-261-0/+70
| |/ | | | | | | | | | | See also torspec!258 Part of #1272
* | Make filter conditional, to fix build with hs-service disabled.Nick Mathewson2024-03-262-2/+6
| |