summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | tor-proto: Add function for checking if a circuit has any open streams.Gabriela Moldovan2025-05-061-0/+11
| | | |
* | | | tor-proto: Add helper for checking if cmd counts towards conflux seqnos.Gabriela Moldovan2025-05-061-0/+51
| | | | | | | | | | | | | | | | This is a direct translation of C Tor's `conflux_should_multiplex()`.
* | | | tor-proto: Handle conflux cells in the reactor.Gabriela Moldovan2025-05-061-0/+39
| | | |
* | | | tor-proto: Add a TODO about adding a conflux MetaCellHandler.Gabriela Moldovan2025-05-061-0/+5
| | | |
* | | | tor-proto: Add Circuit function for beginning the conflux handshake.Gabriela Moldovan2025-05-061-0/+29
| | | |
* | | | tor-proto: Add a ConfluxMsgHandler to Circuit.Gabriela Moldovan2025-05-063-0/+49
| | | |
* | | | tor-proto: Add last_seq_delivered to ConfluxSet.Gabriela Moldovan2025-05-061-0/+17
| | | |
* | | | tor-proto: Add client-side conflux message handlers.Gabriela Moldovan2025-05-065-0/+547
| | | |
* | | | tor-proto: Add a reason to CircuitAction::RemoveLeg.Gabriela Moldovan2025-05-062-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The leg removal reason will be shared with the initiator of the conflux handshake (i.e. the sender of the `CtrlMsg` initiating the handshake), if the tunnel is a multi-path tunnel with conflux handshakes in progress.
* | | | tor-proto: Add conflux handshake state to reactor.Gabriela Moldovan2025-05-061-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The reactor will need to notify the conflux handshake initiator (the sender of the `CtrlMsg` that triggered the handshake) of conflux set readiness, so it needs to keep track of the status of the circuits it was asked to link.
* | | | tor-proto: Add error and channel types for conflux handshake outcome.Gabriela Moldovan2025-05-062-0/+28
| | | | | | | | | | | | | | | | | | | | These will be used for sending the conflux handshake outcome to the reactor user.
* | | | tor-proto: Pass a DynTimeProvider to the circuit reactor.Gabriela Moldovan2025-05-063-2/+12
| | | | | | | | | | | | | | | | | | | | We will need this to implement conflux handshake timeouts, and to get the current time for RTT calculations.
* | | | tor-proto: Add macro to dedupe error handling.Gabriela Moldovan2025-05-061-9/+30
| | | |
* | | | tor-proto: Store the DesiredUx inside ConfluxSet.Gabriela Moldovan2025-05-061-1/+10
| | | |
* | | | tor-proto: Store the join point of the tunnel in ConfluxSet.Gabriela Moldovan2025-05-061-4/+32
| | | |
* | | | tor-proto: Add Circuit::last_hop_num for getting the last HopNum.Gabriela Moldovan2025-05-062-6/+13
| | | | | | | | | | | | | | | | This will be soon needed in the `ConfluxSet` implementation too.
* | | | tor-proto: Store the V1Nonce of a conflux set in ConfluxSet.Gabriela Moldovan2025-05-061-1/+10
| | | | | | | | | | | | | | | | | | | | This will be shared by all circuits in the set, and will be used during the conflux handshake.
* | | | tor-proto: Make ConfluxSet::primary_id private.Gabriela Moldovan2025-05-061-1/+1
| | | | | | | | | | | | | | | | It doesn't actually need to be `pub(super)`.
* | | | tor-proto: Enable tor-cell/conflux is conflux is enabled.Gabriela Moldovan2025-05-061-1/+1
| |/ / |/| |
* | | Merge branch 'clean-implement-haskind-for-toraddrerror' into 'main'David Goulet2025-05-052-3/+28
|\ \ \ | | | | | | | | | | | | | | | | TODO: Implement HasKind trait for TorAddrError See merge request tpo/core/arti!2965
| * | | Fix formatting in test_error_kind functionVijaya Bhaskar2025-04-271-1/+4
| | | |
| * | | Implement HasKind trait for TorAddrErrorVijaya Bhaskar2025-04-272-3/+25
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This commit implements the HasKind trait for TorAddrError in address.rs, mapping all variants to the InvalidStreamTarget error kind. It also updates the ErrorDetail implementation in err.rs to delegate to TorAddrError's HasKind implementation instead of hardcoding the error kind. Resolves TODOs in address.rs and err.rs.
* | | Merge branch 'revert-workaround' into 'main'Jim Newsome2025-05-011-11/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ci: bump shadow for EPOLLRDHUP fix Closes #1972 See merge request tpo/core/arti!2968
| * | | Revert "arti-bench: work around shadow writer shutdown bug"Jim Newsome2025-04-281-11/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 5f6bd6c42ea97c3f659280a32e206db77f4b4da6. This workaround is no longer needed since the underlying bugs have been fixed in shadow (See https://github.com/shadow/shadow/issues/3100 and https://github.com/shadow/shadow/pull/3574), and the CI has been bumped to use a version of shadow with these fixes.
* | | arti-ureq: Specify versions for dependencies.Nick Mathewson2025-05-011-4/+4
| | |
* | | Merge branch 'release-1.4.3-semver' into 'main'wesleyac2025-05-0162-528/+508
|\ \ \ | | | | | | | | | | | | | | | | release: Bump versions. See merge request tpo/core/arti!2981
| * | | release: Update Cargo.lock files.Wesley Aptekar-Cassels2025-05-012-58/+58
| | | |
| * | | release: Bump arti to 1.4.3.Wesley Aptekar-Cassels2025-05-013-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | ``` cargo set-version --bump patch -p arti ```
| * | | release: Bump all unstable tor/arti crates to 0.30.0Wesley Aptekar-Cassels2025-05-0158-465/+445
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do cargo set-version -p $crate 0.30.0 done ```
| * | | release: Bump versions of non tor/arti crates.Wesley Aptekar-Cassels2025-05-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The non-{arti-,tor-} crates are: ``` ./maint/list_crates | rg -v '^(tor|arti)' oneshot-fused-workaround slotmap-careful test-temp-dir fslock-guard hashx equix caret fs-mistrust safelog retry-error ``` Of these, only hashx and fs-mistrust have changed, as per: ``` ./maint/changed_crates -v "arti-v$LAST_VERSION" 2>&1 >/dev/null | grep -i "no change" | grep -v '\(tor\|arti\)-' ``` So these were updated with: ``` ./maint/bump_nodep hashx fs-mistrust ```
* | | | release: Update release date.Wesley Aptekar-Cassels2025-05-011-1/+1
|/ / / | | | | | | | | | Done via `./maint/update-release-date`.
* | | Merge branch 'typos' into 'main'Ian Jackson2025-05-011-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Fix typos See merge request tpo/core/arti!2961
| * | | fix: remove backspace in commentTobias Stoeckmann2025-04-251-1/+1
| |/ / | | | | | | | | | | | | The backspace character leads to funny results, depending on tool or terminal used to show content of the file.
* | | Merge branch 'relay-cell-len' into 'main'opara2025-05-012-8/+51
|\ \ \ | | | | | | | | | | | | | | | | tor-cell: Add `UnparsedRelayMsg::data_len` See merge request tpo/core/arti!2976
| * | | tor-cell: optimize slice indexingSteven Engler2025-04-301-2/+2
| | | |
| * | | tor-cell: rename `STREAM_ID_OFFSET` to `STREAM_ID_OFFSET_V0`Steven Engler2025-04-301-3/+3
| | | |
| * | | tor-cell: add some testing for `UnparsedRelayMsg`Steven Engler2025-04-301-4/+27
| | | |
| * | | tor-cell: add `UnparsedRelayMsg::data_len`Steven Engler2025-04-301-1/+21
| | | |
* | | | Merge branch 'release-2025-04-update-semver' into 'main'Nick Mathewson2025-04-303-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | maint: Update semver.md files from semver-checks See merge request tpo/core/arti!2977
| * | | | arti: Add feature flags for backwards compatibility.Wesley Aptekar-Cassels2025-04-302-2/+6
| | | | |
| * | | | tor-error: Don't mark enum discriminant change breaking.Wesley Aptekar-Cassels2025-04-301-1/+0
| | | | |
| * | | | maint: Update semver.md files from semver-checksWesley Aptekar-Cassels2025-04-304-0/+5
| |/ / /
* / / / chore: Run fixup-features.Wesley Aptekar-Cassels2025-04-307-7/+14
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cargo run -p fixup-features -- --exclude examples/ --exclude maint/ Cargo.toml The following features in arti-ureq were manually added to full or marked non-additive: * rustls * native-tls * tokio * async-std
* | | tor-netdir: Warn on one more case of insufficient itemsNick Mathewson2025-04-291-1/+12
| | | | | | | | | | | | | | | | | | Now that choose_multiple_weighted can once more return fewer items than requested, we should warn when it does so, to be consistent with our other cases of warning about #1907.
* | | tor-netdir: test for rand 0.9.1 behavior instead of 0.9.0Nick Mathewson2025-04-291-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | Rand 0.9.1 reverted the changes that caused #1903, in https://github.com/rust-random/rand/pull/1623. This broke our test that made sure that rand wasn't going to change their behavior _again_ :)
* | | Update rand requirement to 0.9.1Nick Mathewson2025-04-2926-29/+29
| | | | | | | | | | | | | | | (This is going to be a _requirement_, since rand 0.9.1 has a behavioral change from 0.9.0)
* | | Run cargo update.Wesley Aptekar-Cassels2025-04-2924-26/+26
| | | | | | | | | | | | | | | I updated everything except rand, because the new version of rand interacts with #1903, thus requiring more care.
* | | Upgrade dependencies.Wesley Aptekar-Cassels2025-04-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates: * hashlink 0.9.1 -> 0.10.0 * Updates hashbrown * metrics-exporter-prometheus 0.16.2 -> 0.17.0 * Bumps deps * Minor API change Not updated: * rusqlite, due to MSRV incompatibility * educe (#1257) * hickroy-proto (https://github.com/hickory-dns/hickory-dns/issues/2956)
* | | tor-proto: use RelayCellFormat rather than u8 in tests.Nick Mathewson2025-04-291-14/+14
| | | | | | | | | | | | (The u8 code was written before RelayCellFormat::V1 was introduced.)
* | | Rename feature cgo => counter-galois-onion.Nick Mathewson2025-04-292-5/+5
| | |