summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'ctrl-msg-2' into 'main'David Goulet2025-10-222-111/+113
|\ \ \ \ | |/ / / |/| | | | | | | | | | | proto: Move the control channels to RelayReactor See merge request tpo/core/arti!3387
| * | | proto: Replace select! with select_biased!Gabriela Moldovan2025-10-221-2/+2
| | | | | | | | | | | | | | | | We need to give the control channels higher priority here.
| * | | proto: Update an outdated doc linkGabriela Moldovan2025-10-221-1/+1
| | | |
| * | | proto: Add debug log when RelayReactor shuts downGabriela Moldovan2025-10-221-2/+14
| | | |
| * | | proto: Replace futures::select with importGabriela Moldovan2025-10-221-2/+2
| | | |
| * | | proto: Remove no-longer relevant note on control message handlingGabriela Moldovan2025-10-221-10/+0
| | | |
| * | | proto: Remove an already-addressed TODOGabriela Moldovan2025-10-221-2/+0
| | | |
| * | | proto: Handle control messages in RelayReactorGabriela Moldovan2025-10-222-51/+53
| | | | | | | | | | | | | | | | Control messages are handled in RelayReactor instead of BackwardReactor.
| * | | proto: Move the control channels to RelayReactorGabriela Moldovan2025-10-222-53/+53
| | | | | | | | | | | | | | | | | | | | This only moves the control/command fields to RelayReactor. The next step is to actually implement the control message handling and dispatch.
* | | | Merge branch 'tor-dirserver-msrv-1.86' into 'main'David Goulet2025-10-221-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | tor-dirserver: Bump MSRV from 1.83 to 1.86 See merge request tpo/core/arti!3385
| * | | tor-dirserver: bump MSRV from 1.83 to 1.86hashcatHitman2025-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed that when doing `cargo generate-lockfile` in the workspace root, it was locking dependencies to 1.83 compatible versions. It turns out tor-dirserver started on MSRV 1.83 after we already bumped to 1.85, and has been missed in MSRV updates ever since. I've found no indication it is intentionally getting this special treatment and am assuming it is a mistake. Signed-off-by: hashcatHitman <[email protected]>
* | | | Merge branch 'p2-shared-rand-status' into 'main'Ian Jackson2025-10-225-17/+28
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | impl ItemValueParseable for SharedRandStatus See merge request tpo/core/arti!3380
| * | | | tor-netdoc: impl ItemValueParseable for SharedRandStatusIan Jackson2025-10-211-0/+1
| | | | |
| * | | | tor-netdoc: impl Display, FromStr, NormalItemArgument for SharedRandValIan Jackson2025-10-211-2/+18
| | | | |
| * | | | tor-netdoc: derive From<Vec<u8>> and v-v for B64Ian Jackson2025-10-211-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This may not be the best utility type to use for lots of the fixed-length byte strings, but we *are* using it a lot in the old and now the new parser. Implement From and Into.
| * | | | tor-netdoc: Change type of timestamp in SharedRandStatus (fmt)Ian Jackson2025-10-211-2/+1
| | | | |
| * | | | tor-netdoc: Change type of timestamp in SharedRandStatusIan Jackson2025-10-214-7/+8
| | | | |
* | | | | Merge branch 'restricted-discovery-stable' into 'main'gabi-2502025-10-224-14/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | arti: Mark restricted-discovery as non-experimental See merge request tpo/core/arti!3384
| * | | | | arti: Update README to say restricted discovery is non-experimentalGabriela Moldovan2025-10-211-1/+4
| | | | | |
| * | | | | arti: Move restricted-discovery closer to onion-service-serviceGabriela Moldovan2025-10-211-1/+1
| | | | | |
| * | | | | hsrproxy: Sort Cargo.tomlGabriela Moldovan2025-10-211-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | This change is needed to satisfy `maint/cargo_sort`
| * | | | | hsrproxy: Place non-experimental features at the topGabriela Moldovan2025-10-211-1/+1
| | | | | |
| * | | | | arti: Mark restricted-discovery as non-experimentalGabriela Moldovan2025-10-213-8/+8
| |/ / / / | | | | | | | | | | | | | | | As per the team decision from the 14 Oct Arti sync.
* | | | | arti-relay: add line breaks between `InertTorRelay` fieldsSteven Engler2025-10-211-0/+5
| | | | |
* | | | | arti-relay: add a `MemoryQuotaTracker`Steven Engler2025-10-211-3/+12
| | | | |
* | | | | arti-relay: add a `SystemConfig` to the relay configSteven Engler2025-10-211-0/+18
| | | | |
* | | | | arti-relay: add some TODO commentsSteven Engler2025-10-211-0/+3
| | | | |
* | | | | arti-relay: small refactoringSteven Engler2025-10-211-7/+6
| | | | |
* | | | | arti-relay: generate keys only when bootstrappingSteven Engler2025-10-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | We don't want to create new files just when creating a `InertTorRelay`. We should only generate the keys before bootstrapping.
* | | | | arti-relay: add note to `StorageConfig::permissions`Steven Engler2025-10-211-0/+6
| | | | |
* | | | | arti-relay: copy `state_mgr.try_lock()` from arti-clientSteven Engler2025-10-212-1/+9
| | | | |
* | | | | tor-proto: fix `clippy::needless_pass_by_value` warningSteven Engler2025-10-211-0/+1
| | | | |
* | | | | arti-relay: small change to `create_keymgr()`Steven Engler2025-10-212-30/+8
| | | | |
* | | | | arti-relay: use `TokioRustlsRuntime` instead of `PreferredRuntime`Steven Engler2025-10-211-5/+8
| | | | |
* | | | | arti-relay: initialize the `StateDirectory` and `FsStateMgr`Steven Engler2025-10-213-1/+51
| | | | |
* | | | | Merge branch 'ticket2217_01' into 'main'David Goulet2025-10-214-11/+106
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | relay: Implement a first relay background task See merge request tpo/core/arti!3363
| * | | | relay: Implement a blocking run() that starts the relayDavid Goulet2025-10-212-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have bootstrap() to prepare everything we need before starting the relay which yields a TorRelay. This commit then adds a run() function which starts the relay by launching background task. At the moment, we only have one task and it is the channel expiry one. The relay blocks on the task handle set until one task is on error or stops which leads to shutting down the relay. Part of #2217 Signed-off-by: David Goulet <[email protected]>
| * | | | relay: Add channel housekeeping taskDavid Goulet2025-10-213-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a background task in charge of expiring closing channels and future work is to also prune duplicate channels. This is not used nor called at this commit, next commit will add the task handling. Part of #2217 Signed-off-by: David Goulet <[email protected]>
* | | | | Merge branch 'p2-misc-fixes' into 'main'opara2025-10-212-2/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-netdoc: parse2: Minor fixes See merge request tpo/core/arti!3376
| * | | | | tor-netdoc: Reference `build::ItemArgument` from `NoramlItemArgument` docIan Jackson2025-10-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 9ce85acb3ab0d1a0b1be6ef0f10707983f4362a3 tor-netdoc: replace impl_item_argument_as_display with NormalItemArgument this trait impl has implications for encoding as well as parsing.
| * | | | | tor-netdoc: NetdocParseable derive: use more explicit syntaxIan Jackson2025-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In principle some other trait might be in scope.
| * | | | | tor-netdoc: parse2: Don't declare internal error on subdoc intro itemsIan Jackson2025-10-211-0/+4
| | |/ / / | |/| | | | | | | | | | | | | | | | | | subdoc intro items aren't inherently incoherent, but implementing them is nontrivial. Let's reject them with a bespoke error instead.
* | | | | Merge branch 'msrv-1-86-0' into 'main'David Goulet2025-10-2161-61/+61
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Bump MSRV from 1.85.1 to 1.86 See merge request tpo/core/arti!3382
| * | | | | Bump MSRV from 1.85.1 to 1.86Clara Engler2025-10-2161-61/+61
| |/ / / /
* | | | | Merge branch 'p2-blanket-arc' into 'main'David Goulet2025-10-212-7/+30
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-netdoc: blanket impl parse2 traits for Arc See merge request tpo/core/arti!3381
| * | | | | tor-netdoc: blanket impl parse2 traits for ArcIan Jackson2025-10-212-7/+30
| |/ / / / | | | | | | | | | | | | | | | This replaces one ad-hoc impl and will avoid having to have any more.
* | | | | Merge branch 'relay-reactor-fun-2' into 'main'gabi-2502025-10-2120-499/+1472
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | proto: Add the initial implementation of the relay reactor(s) See merge request tpo/core/arti!3369
| * | | | proto: Fix broken doc linksGabriela Moldovan2025-10-211-2/+3
| | | | |
| * | | | proto: Prioritize shutdown over everything elseGabriela Moldovan2025-10-211-8/+8
| | | | |
| * | | | proto: Ensure RelayReactor shuts down the other reactorsGabriela Moldovan2025-10-213-21/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `RelayReactor` now holds the sending end of the shutdown broadcast channel, so if `RelayReactor` exits, both the forward and the backward relay reactor will notice and shut down too. Similarly, if the forward or backward reactor exits, the `RelayReactor` will notice (because it select!s between the two), and will shut down