summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | tor-proto: fix failing cargo fmtSteven Engler2025-08-071-1/+1
| | |
* | | Merge branch 'note_result_flatten_msrv' into 'main'David Goulet2025-08-071-2/+3
|\ \ \ | |/ / |/| | | | | | | | Fix a comment about Result::flatten See merge request tpo/core/arti!3138
| * | Fix a comment about Result::flattenNick Mathewson2025-08-071-2/+3
| | | | | | | | | | | | Previously this API was nightly-only; now it's in 1.89.
* | | Merge branch 'enable-cgo' into 'main'Nick Mathewson2025-08-077-53/+43
|\ \ \ | | | | | | | | | | | | | | | | Enable counter-galois onion negotiation and make it work. See merge request tpo/core/arti!3133
| * | | proto: In CircuitExtender, derive relay crypt protocol from settings.Nick Mathewson2025-08-072-40/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a CGO bug: when extending circuits with ntorv3, we were never actually using CGO encryption for the newly constructed layer. This change also simplifies the code a bit, by un-parameterizing CircuitExtender a bit.
| * | | Propagate cgo feature up to arti crate.Nick Mathewson2025-08-072-0/+8
| | | |
| * | | proto: List CGO-related features in supported_client_protocolsNick Mathewson2025-08-061-3/+9
| | | |
| * | | proto: Make CGO feature require CCNick Mathewson2025-08-061-1/+1
| | | | | | | | | | | | | | | | (We can't negotiate the one without the other.)
| * | | proto: remove code that had disabled CGO.Nick Mathewson2025-08-061-9/+0
| | | | | | | | | | | | | | | | Now that we can negotiate CC, we can negotiate CGO.
* | | | Merge branch 'update_to_edition_2024_v2' into 'main'Nick Mathewson2025-08-07432-1546/+1868
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Update code for Edition 2024 (second attempt) Closes #2101 See merge request tpo/core/arti!3137
| * | | Resolve a rustdoc warningNick Mathewson2025-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | `Future` is now in the prelude, so we don't have to give it an explicit path.
| * | | Revert confusing change to use of StreamExt::into_futureNick Mathewson2025-08-071-2/+5
| | | | | | | | | | | | | | | | | | | | We're not sure why `cargo fix` did this, but it doesn't seem necessary.
| * | | Rename variables named "gen"Nick Mathewson2025-08-072-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | This is now a reserved identifier. The automatic migration changed it to a raw identifier (`r#gen`), but it's better to use a different name.
| * | | Fix warnings and errors from edition 2024.Nick Mathewson2025-08-0714-82/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The two main causes of errors were: - Since some of the lifetime rules have changed, we no longer need to do as many "bind a variable and immediately return it" patterns, and so clippy now warns about them. - We needed to adjust the explicit captures (`use<...>`) in a couple of our RPIT instances.
| * | | Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-07425-1404/+1713
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
| * | | Update code for Edition 2024Nick Mathewson2025-08-0733-64/+86
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Run cargo fix --edition 2. Selectively revert the "if let"->"match" changes. These changes are meant to protect us from the lifetime changes for "if let" bindings in Rust 2024. But we're not actually relying on the old lifetime rules anywhere, and the match syntax here is quite ugly. 3. Automatically revert `$pat:expr_2021` to `$pat:expr`. (We don't actually want to restrict the expression syntax that our macros accept). Done with `git grep -l expr_2021 | xargs perl -i -pe 's/expr_2021/expr/g;'` 4. Run cargo fmt.
* | | Merge branch 'fix-quote' into 'main'David Goulet2025-08-071-1/+1
|\ \ \ | | | | | | | | | | | | | | | | tor-protover: Small comment formatting fix See merge request tpo/core/arti!3136
| * | | tor-protover: small comment formatting fixSteven Engler2025-08-061-1/+1
| |/ / | | | | | | | | | | | | This breaks the syntax highlighting in vim for some reason and makes the file unreadable for me.
* | | Merge branch 'improve-keys-list' into 'main'David Goulet2025-08-071-17/+64
|\ \ \ | |/ / |/| | | | | | | | arti: keys: Fix incorrect display of CTor keystore entries in `keys list` CLI See merge request tpo/core/arti!3116
| * | arti: keys: Improve CLI output by distinguishing KeyPath variantshjrgrn2025-08-061-17/+64
| | | | | | | | | | | | | | | * Update `display_entry` function to handle different `KeyPath` variants * Add functions `display_arti_entry` and `display_ctor_entry`
* | | arti-client: Fix test for FlowCtrl=2.Nick Mathewson2025-08-061-3/+3
| | | | | | | | | | | | | | | (It is possible for arti-client to have flowctl-cc disabled, but for tor-proto to have it enabled.)
* | | tor_proto: add FLOWCTRL_CC to supported_client_protocolsNick Mathewson2025-08-062-10/+28
|/ / | | | | | | | | Since we now allow it to be turned on, we can include it among our supported protocols.
* | Merge branch 'msrv-fixes' into 'main'Nick Mathewson2025-08-054-18/+24
|\ \ | | | | | | | | | | | | Resolve a few issues that had been waiting for an MSRV update. See merge request tpo/core/arti!3129
| * | arti::socks: Resolve a TODO MSRV entry.Nick Mathewson2025-08-051-6/+3
| | |
| * | hsservice: copy our TODO about eventually replacing once_cell.Nick Mathewson2025-08-051-0/+8
| | |
| * | tor-cell: Check strictly-ascending property more efficientlyNick Mathewson2025-08-052-12/+13
| | | | | | | | | | | | | | | | | | I had been planning to use `[]::is_sorted` here, once we had MSRV >= 1.82, but it turns out that we wanted strictly ascending sequence, whereas `is_sorted` checks for a non-descreasing sequence.
* | | Merge branch 'prop362-fixups' into 'main'wesleyac2025-08-057-77/+289
|\ \ \ | |/ / |/| | | | | | | | Fix a few TODOs for PoW See merge request tpo/core/arti!3106
| * | tor-hsservice: cargo fmt.Wesley Aptekar-Cassels2025-08-051-1/+1
| | |
| * | tor-hsservice: Fix clippy lints.Wesley Aptekar-Cassels2025-08-051-2/+2
| | |
| * | tor-hsservice: Use saturating versions of time math functions.Wesley Aptekar-Cassels2025-08-051-1/+3
| | |
| * | tor-hsservice: Remove redundant check.Wesley Aptekar-Cassels2025-08-051-7/+1
| | |
| * | tor-hsservice: Don't panic on PoW main loop error.Wesley Aptekar-Cassels2025-08-051-5/+8
| | |
| * | tor-hsservice: Change detection of empty queue in tests.Wesley Aptekar-Cassels2025-08-051-3/+3
| | |
| * | tor-hsservice: Clean up use of MockRuntime functions.Wesley Aptekar-Cassels2025-08-051-10/+2
| | |
| * | tor-hsservice: Refactor PoW test helper functions.Wesley Aptekar-Cassels2025-08-051-57/+56
| | |
| * | tor-hsservice: Make PoW timeout logic smarter.Wesley Aptekar-Cassels2025-08-051-5/+11
| | |
| * | tor-hsservice: Make several PoW loop functions return Result.Wesley Aptekar-Cassels2025-08-051-6/+12
| | | | | | | | | | | | | | | These now `warn!` and cleanly exit their respective threads on error, instead of panicking.
| * | tor-hsservice: Add explanation of REND_REQUEST_QUEUE_MAX_DEPTH default.Wesley Aptekar-Cassels2025-08-051-0/+6
| | |
| * | tor-hsservice: Clean up try_from syntax.Wesley Aptekar-Cassels2025-08-051-4/+6
| | |
| * | tor-cell: Add ProofOfWorkV1::cap_effort function.Wesley Aptekar-Cassels2025-08-052-6/+11
| | |
| * | tor-hsservice: Make main_loop_task return Result.Wesley Aptekar-Cassels2025-08-051-5/+11
| | | | | | | | | | | | | | | | | | This just pushes around where the panic is for now, but enables better handling of this error, and it makes it clearer that this panic will only stop this thread.
| * | tor-hsservice: Time out RendRequests in PoW queue.Wesley Aptekar-Cassels2025-08-052-14/+94
| | |
| * | tor-hsservice: Increase rend request queue depth.Wesley Aptekar-Cassels2025-08-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | The "a few KB" measurement was done by using the get_size crate to measure the size of the RendRequest object, but due to limitations in that crate (and in my willingness to go implement ways of checking the size of external types), it might be somewhat off. The ~32MB value is based on the idea that each RendRequest is 4KB.
| * | tor-hsservice: Persist suggested_effort.Wesley Aptekar-Cassels2025-08-052-6/+15
| | |
| * | tor-hsservice: Add consensus params for Prop 362.Wesley Aptekar-Cassels2025-08-055-26/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the three new parameters specified in Prop 362 [0]. Two of these replace hardcoded defaults in the code. The third, HiddenServiceProofOfWorkV1ServiceIntroTimeoutSeconds, is not implemented yet, but will be in a future commit. [0]: https://spec.torproject.org/proposals/362-update-pow-control-loop.html
* | | Merge branch 'msrv-1.85' into 'main'Nick Mathewson2025-08-0561-77/+75
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Bump MSRV to Rust 1.85 Closes #2095 See merge request tpo/core/arti!3128
| * | Remove a now-needless doc comment.Nick Mathewson2025-08-051-2/+0
| | |
| * | Bump to hex-literal 1.0Nick Mathewson2025-08-0514-15/+15
| | | | | | | | | | | | | | | (We were unable to do this before, since it required a rust version we didn't have.)
| * | Set MSRV to 1.85.Nick Mathewson2025-08-0560-60/+60
| | |
* | | Merge branch 'semver' into 'main'Nick Mathewson2025-08-054-12/+0
|\ \ \ | | | | | | | | | | | | | | | | Remove semver.md files, post-release. See merge request tpo/core/arti!3127