aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-rtcompat/src
Commit message (Collapse)AuthorAgeFilesLines
* refactor: use TaskHandle for expiring circuitiqdecay13 days1-1/+1
|
* tor-rtcompat: Make RuntimeSubstExt methods provided methods (fmt)Ian Jackson2026-07-161-2/+1
|
* tor-rtcompat: Make RuntimeSubstExt methods provided methodsIan Jackson2026-07-161-20/+6
| | | | | This involves making Runtime a supertrait, but that's not even an API break since this trait is sealed anyway.
* Merge branch 'remove-lint' into 'main'Jim Newsome2026-07-151-1/+1
|\ | | | | | | | | | | | | Removed unnecessary lint Closes #2556 See merge request tpo/core/arti!4210
| * add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
| |
| * Removed unnecessary lintpryty262026-07-151-1/+1
| | | | | | | | Removed unnecessary lint
* | multiple crates: Fix clippy warningshjrgrn2026-07-101-2/+2
|/
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-0910-0/+11
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* tor-rtcompat: change `Default` impls for connect/listen optionsSteven Engler2026-06-081-37/+60
| | | | The new `Default`s have no panicking code paths.
* tor-rtcompat: replace `_options` with `()`Steven Engler2026-06-081-2/+2
| | | | | This hopefully better shows that there's nothing to use here for general socket types.
* tor-rtcompat: add connect() options to set the socket buf sizesSteven Engler2026-06-082-2/+25
|
* tor-rtcompat: manually create and connect() socketSteven Engler2026-06-084-14/+155
| | | | | | | | | This will allow us in the future to set custom sockopts on the socket before calling connect(). I tested an arti proxy with tokio and async-std manually. Arti doesn't yet support smol so I was not able to test it, but it's using the same code as async-std so I would expect it to work.
* tor-rtcompat+misc: add `NetStreamProvider::ConnectOptions`Steven Engler2026-06-089-31/+131
| | | | | | | | | This adds the trait type `ConnectOptions` to `NetStreamProvider` and adds this `ConnectOptions` as an argument to `NetStreamProvider::connect()`. You probably want to look at the changes in tor-rtcompat first, then the rest of this commit is updating the various places we use `NetStreamProvider`.
* tor-rtcompat: add structs to hold connect() optionsSteven Engler2026-06-082-1/+87
| | | | | For now this just sets up the structure. We'll add options for TCP later.
* tor-rtcompat: improve comment on `UnixListenOptions`Steven Engler2026-06-081-1/+1
|
* tor-rtcompat: improve comments related to socket optionsSteven Engler2026-05-212-3/+32
|
* tor-rtcompat: add options to set the socket buf sizesSteven Engler2026-05-072-2/+25
|
* tor-rtcompat+misc: add `NetStreamProvider::ListenOptions`Steven Engler2026-05-079-33/+139
| | | | | | | | | This adds the trait type `ListenOptions` to `NetStreamProvider` and adds this `ListenOptions` as an argument to `NetStreamProvider::listen()`. You probably want to look at the changes in tor-rtcompat first, then the rest of this commit is updating the various places we use `NetStreamProvider`.
* tor-rtcompat: add structs to hold listen() optionsSteven Engler2026-05-072-0/+98
| | | | | For now this just sets up the structure. We'll add options for TCP later.
* rtcompat: document choice of aws_lc_rs providerNick Mathewson2026-04-081-9/+11
|
* rtcompat: Stop installing backup CryptoProvider.Nick Mathewson2026-04-021-5/+8
| | | | | | | | | | | | When using rustls, previously we'd check to see whether the application had installed a CryptoProvider (as it is required to do). If not, we'd log a warning and install a Ring provider. But now, we want to enable other kinds of providers, so this behavior isn't practical any more. (See #2448 for discussion.) Closes #2448.
* rtcompat, rtmock: Port to web-time-compat.Nick Mathewson2026-03-266-18/+19
|
* rtcompat: Fix clippy with wasm32 and no-default-features.Nick Mathewson2026-03-251-0/+7
|
* Merge branch 'typos' into 'main'opara2026-03-162-2/+2
|\ | | | | | | | | Fix various typos See merge request tpo/core/arti!3781
| * Fix word duplicate typosTobias Stoeckmann2026-03-152-2/+2
| |
* | Fix windows cargo warningsTobias Stoeckmann2026-03-151-0/+1
|/ | | | Disable use-statements which are only needed for unix.
* rtcompat: Allocate the zeroed vector for export_keying_material()David Goulet2026-02-262-2/+2
| | | | | | | | Reason is that Vec::with_capacity(len) doesn't actually allocate and the Rustls export_keying_material() does a .is_empty() check which is under ".len() == 0". Signed-off-by: David Goulet <[email protected]>
* Merge branch 'resume' into 'main'opara2026-02-242-2/+17
|\ | | | | | | | | tor-rtcompat: Disable rustls session resumption See merge request tpo/core/arti!3710
| * tor-rtcompat: disable rustls session resumptionSteven Engler2026-02-242-2/+17
| |
* | tor-rtcompat: unfold for smol incoming streamsmoumenalaoui2026-02-191-41/+11
| |
* | tor-rtcompat: unfold for async-std incoming streamsmoumenalaoui2026-02-191-47/+9
|/
* Allow clippy::collapsible_if to triggerGabriela Moldovan2026-02-161-0/+1
| | | | | | | | | `clippy::collapsible_if` started triggering after bumping the MSRV to 1.88. Since this triggers from a lot of places, and since there even are a couple of instances where we explicitly allow `clippy::collapsible_ifs`, I've opened #2342 for deciding what to do about it.
* tor-rtcompat: fix clippy warningSteven Engler2026-02-091-0/+1
|
* rtcompat: Return certificates as Cow.Nick Mathewson2026-02-026-22/+27
|
* rtcompat: tweaks to no-tls-server case.Nick Mathewson2026-02-021-0/+9
|
* rtcompat: Improved tls-server key/cert handling.Nick Mathewson2026-02-024-86/+35
| | | | | Now that we can admit to knowing about tor-cert-x509, we can use TlsCertAndKeys to simplify everything.
* rtcompat: restore tls-server test.Nick Mathewson2026-02-021-7/+3
| | | | | | | Now that tor-cert-x509 is its own crate, we can use that, and avoid the circular dependency. Closes #2330.
* rtcompat: Temporarily disable tls-server test.Nick Mathewson2026-01-291-3/+5
| | | | | | It would introduce a circular dev-dependency, which is not well-supported by cargo publish. I hope to resolve this and re-enable the test in #2330.
* rustls: Improve test output; use standard warnings.Nick Mathewson2026-01-291-4/+16
|
* rtcompat: Clarify sni_hostname for server connections.Nick Mathewson2026-01-291-1/+4
|
* rtcompat: Clarify None returns from own_certificate.Nick Mathewson2026-01-292-1/+11
|
* rtcompat: Unit test for TLS server code.Nick Mathewson2026-01-291-2/+76
|
* rtmock: Implement server support.Nick Mathewson2026-01-291-0/+5
|
* rustls: add an error for unimplemented tls server support.Nick Mathewson2026-01-294-5/+20
|
* rtcompat: Implement TLS server support for rustls.Nick Mathewson2026-01-294-10/+269
| | | | Closes #2316.
* rtcompat: new server-related members on TlsProvider trait.Nick Mathewson2026-01-298-3/+142
| | | | | These are as yet unimplemented; there's a stub type for the providers (nativetls) that won't actually have them.
* rtcompat: new own_certificate method on CertifiedConn traitNick Mathewson2026-01-293-0/+16
|
* maint/add_warning: Run script to add new warningGabriela Moldovan2026-01-271-0/+1
| | | | This adds the lint to all our crates.
* opentelemetry: Instrument a bunch of functions.Wesley Aptekar-Cassels2025-11-246-0/+16
| | | | | These are all aimed at figuring out in more detail what's going on in #2079 and related issues.
* tor-rtcompat: add comments about blocking in async contextsSteven Engler2025-11-122-1/+5
|