summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'rtmock-thread' into 'main'Ian Jackson2025-02-251-91/+525
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | tor-rtmock: Provide a facility for handling other threads See merge request tpo/core/arti!2793
| * | | tor-rtmock: Avoid confusing "concurrently" wordIan Jackson2025-02-251-2/+2
| | | |
| * | | tor-rtmock: Explain Subthreads and compare them with bare threadsIan Jackson2025-02-251-0/+31
| | | |
| * | | tor-rtmock: Capitalise Subthread and link to the definitionIan Jackson2025-02-251-25/+29
| | | | | | | | | | | | | | | | | | | | This makes it clearer that this is a specific term, which a definition.
| * | | tor-rtmock: Fix a typoIan Jackson2025-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2793#note_3161972
| * | | tor-rtmock: Move imprecations to more prominent locationIan Jackson2025-02-251-11/+9
| | | | | | | | | | | | | | | | | | | | The rustdocs for a fn in a trait impl are rendered, but are very unobvious. Put the information in the top-level documentation.
| * | | tor-rtmock: subthread facilityIan Jackson2025-02-131-7/+381
| | | | | | | | | | | | | | | | We'll expose this with some new traits in tor_rtmock.
| * | | tor-rtmock: subthread facility (pre-fmt)Ian Jackson2025-02-131-2/+10
| | | |
| * | | tor-rtmock: Replace open-coded Debug impl with DeriveIan Jackson2025-02-131-34/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | No change to output, but much less open-coding. Move the doc comment that was on the Debugg impl, to the `DebugTasks` helper struct.
| * | | tor-rtmock tests: Improve various_mock_executorsIan Jackson2025-02-131-0/+1
| | | | | | | | | | | | | | | | Show where each test sub-case is started, in stderr output.
| * | | tor-rtmock tests: Break out various_mock_executorsIan Jackson2025-02-131-5/+10
| | | | | | | | | | | | | | | | We're going to add another call site.
| * | | tor-rtmock: Break out Task::set_awakeIan Jackson2025-02-131-7/+19
| | | | | | | | | | | | | | | | We're going to add another call site.
| * | | tor-rtmock: task: Rename MockExecutor Arc<Shared> field to sharedIan Jackson2025-02-131-17/+17
| | | |
| * | | tor-rtmock: task: Replace ArcMutexData with Arc<Shared>Ian Jackson2025-02-131-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to want to add a field inside the Arc but not inside the Mutex, so make the Arc contents into a named-fields struct. We don't need ArcMutexData any more. Arc<Shared> will do fine. Previously, we needed to implement .lock() on ArcMutexData but because Arc<Shared> derefs to Shared, we can implement it on Shared just as well. The field in MockExecutor ought to be renamed, but that's textually intrusive so will come in the next commit.
| * | | tor-rtmock: Correct a commentIan Jackson2025-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | In an earlier version of this code there was a Polling state, but there isn't now.
* | | | tor-proto: add variants to `HopLocation` behind `conflux` featureSteven Engler2025-02-242-7/+10
| | | |
* | | | tor-proto: add experimental 'conflux' featureSteven Engler2025-02-241-1/+2
| | | |
* | | | tor-proto: add `HopLocation` and `TargetHop`Steven Engler2025-02-241-0/+29
| |_|/ |/| |
* | | arti-rpcserver: Fix operator precedence warning.Gabriela Moldovan2025-02-241-1/+1
| | | | | | | | | | | | | | | This fixes an "operator precedence can trip the unwary" warning that showed up after I updated my toolchain to 1.85.
* | | tor-netdoc: Fix useless conversion warning.Gabriela Moldovan2025-02-241-1/+1
| | | | | | | | | | | | This fixes a warning that triggers on the latest stable release (1.85).
* | | tor-proto: Add a tunnel module.David Goulet2025-02-2027-210/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move StreamTarget to the tunnel module and the circuit module. From now on streams will be implemented on tunnels, not circuits. This moves `StreamTarget` to the tunnel module. A future change will replace `ClientCirc` with `ClientTunnel` inside `StreamTarget`. This is mostly code motion, best reviewed with `--color-moved`. Signed-off-by: David Goulet <[email protected]>
* | | tor-proto: Change the visibility of a series of structGabriela Moldovan2025-02-203-17/+17
| | | | | | | | | | | | | | | | | | | | | We're about to need this in `tor_proto::tunnel` which is from the Conflux work. In the spirit of upstreaming as much as possible, it is done now.
* | | tor-proto: Add a newtype wrapper for LegId.Gabriela Moldovan2025-02-201-4/+12
| | | | | | | | | | | | | | | We will eventually need to expose this in `tor-proto`'s public API, so it'll need to be an opaque type.
* | | tor-proto: Add LegId type that can be used as a slotmap key.Gabriela Moldovan2025-02-201-0/+8
| | | | | | | | | | | | | | | This will soon be used by the reactor-internal `ConfluxSet` as a unique identifier for the circuit legs stored in its `SlotMap`.
* | | tor-cell: Add encodable conflux relay message types.Gabriela Moldovan2025-02-183-0/+216
| | | | | | | | | | | | | | | | | | | | | This adds support for encoding and decoding `RELAY_CONFLUX_LINK`, `RELAY_CONFLUX_LINKED`, and `RELAY_CONFLUX_SWITCH` cells. Closes #1852
* | | tor-cell: Add conflux RelayCmds.Gabriela Moldovan2025-02-182-0/+14
| | | | | | | | | | | | Part of #1852
* | | tor-cell: Add an experimental conflux feature.Gabriela Moldovan2025-02-181-0/+2
| | |
* | | Merge branch 'circ-reactor-refactor' into 'main'gabi-2502025-02-183-59/+67
|\ \ \ | | | | | | | | | | | | | | | | tor-proto: Move CreateHandshakeWrap to reactor module. See merge request tpo/core/arti!2796
| * | | tor-proto: Move CreateHandshakeWrap to reactor module (fmt).Gabriela Moldovan2025-02-181-3/+1
| | | |
| * | | tor-proto: Move CreateHandshakeWrap to reactor module.Gabriela Moldovan2025-02-183-57/+67
| | | | | | | | | | | | | | | | | | | | This moves the `CreateHandshakeWrap` and its implementors to `reactor::create` (none of these are used outside of the reactor).
* | | | Fix `crate_bootstrapped` typokpcyrd2025-02-161-1/+1
|/ / /
* / / tor-proto: Remove deprecated DataStream API.Gabriela Moldovan2025-02-131-32/+0
|/ / | | | | | | | | Reducing `ClientCirc` proliferation will make our lives easier when implementing !2790.
* | Enable derive-deftly beta featuresIan Jackson2025-02-1219-20/+20
| | | | | | | | | | | | | | | | Right now this will give us `${Xmeta as ... default ...}`, which may improve things in the future. The Cargo.toml syntax is precisely that from https://docs.rs/derive-deftly/1.0.0/derive_deftly/doc_changelog/index.html#t:beta
* | Update to derive-deftly 1.0Ian Jackson2025-02-1224-25/+25
|/ | | | | | | | | This is released now. Prepared with: cargo upgrade -i -p derive-deftly There is some new duplication now I think mostly because pwd-grp uses old derive-deftly.
* Merge branch 'upgrade-hickory-proto' into 'main'Nick Mathewson2025-02-111-1/+1
|\ | | | | | | | | | | | | arti: Upgrade 'hickory-proto' to 0.24.3 Closes #1847 See merge request tpo/core/arti!2784
| * arti: upgrade 'hickory-proto' to 0.24.3Steven Engler2025-02-101-1/+1
| | | | | | | | This resolves RUSTSEC-2025-0006, which arti is not affected by.
* | fallbackdir: Update list generated on February 05, 2025Tor CI Release2025-02-111-889/+922
| | | | | | | | Signed-off-by: Tor CI Release <[email protected]>
* | tor-proto: Fold the CommandHandler into ControlHandler.Gabriela Moldovan2025-02-112-95/+79
|/ | | | | | | | This gets rid of a bit of a duplicated code. It also moves `CtrlCmd` closer to `CtrlMsg`. Offshoot from my WIP conflux branch for #1838
* tor-proto: added 'semver.md' fileSteven Engler2025-02-101-0/+1
|
* tor-proto: remove `ClientCirc::channel`Steven Engler2025-02-101-26/+2
|
* tor-dirclient: modify `check_circuit` to use `first_hop_clock_skew`Steven Engler2025-02-102-15/+30
|
* tor-proto: add `ClientCirc::first_hop_clock_skew`Steven Engler2025-02-103-0/+33
|
* Merge branch 'bug1839' into 'main'opara2025-02-101-2/+7
|\ | | | | | | | | | | | | conflux: Split off `time_provider` from `channel` in `ClientCirc` Closes #1839 See merge request tpo/core/arti!2772
| * conflux: Split off `time_provider` from `channel` in `ClientCirc`Neel Chauhan2025-02-101-2/+7
| |
* | tor-hsservice: Change replay/mod.rs to replay.rs.Wesley Aptekar-Cassels2025-02-101-0/+0
| | | | | | | | We have a new lint that requires this.
* | tor-hsservice: Change unclear names in ReplayLog.Wesley Aptekar-Cassels2025-02-102-21/+21
| |
* | tor-hsservice: Assert that hash length is correct in ReplayLog.Wesley Aptekar-Cassels2025-02-101-0/+3
| |
* | tor-hsservice: Change ReplayLog parse_log_leafname API.Wesley Aptekar-Cassels2025-02-103-8/+11
| | | | | | | | | | This previously returned a &str for sort of unclear reasons, which was only used in logging. Remove that.
* | tor-hsservice: Fix some comments in ReplayLog.Wesley Aptekar-Cassels2025-02-101-2/+5
| |
* | tor-hsservice: Make TODOs not doccomments.Wesley Aptekar-Cassels2025-02-101-2/+2
| |