summaryrefslogtreecommitdiff
path: root/crates/tor-rtcompat/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* tor-rtcompat: set `IPV6_V6ONLY` for listening sockets on unixSteven Engler2025-11-101-1/+21
|
* tor-rtcompat: use a consistent `listen()` implementationSteven Engler2025-11-104-3/+124
| | | | | | This gives us a consistent `listen()` implementation across runtimes, and gives us flexibility to customize the bind/listen process for TCP sockets.
* Merge branch 'in_current_span' into 'main'wesleyac2025-11-101-2/+4
|\ | | | | | | | | rtcompat: Spawn every future in_current_span. See merge request tpo/core/arti!3445
| * rtcompat: Spawn every future in_current_span.Nick Mathewson2025-11-051-2/+4
| | | | | | | | | | If we need to override this in the future, we can provide a new method that takes a Span as an argument.
* | Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-069-9/+9
|/ | | | Run maint/add_warning
* tor-rtcompat: add `#[track_caller]` within `implement_opaque_runtime`Steven Engler2025-11-041-0/+8
| | | | | | | This adds the `#[track_caller]` attribute to spawn-related trait method impls, for traits implemented by the `implement_opaque_runtime` macro. This is for compatibility with tokio-console.
* tor-rtcompat: add our own `SpawnExt` traitSteven Engler2025-11-042-3/+43
| | | | This new trait is compatible with tokio-console.
* Remove "doc_auto_cfg" incantation from all crates.Nick Mathewson2025-09-291-1/+1
| | | | This feature has been removed from nightly, in favor of doc_cfg.
* opentelemetry: Add some instrument macros.Wesley Aptekar-Cassels2025-09-242-0/+4
| | | | | I've added these in places that are useful for the debugging that I've been doing.
* Merge branch 'smol-add-impl-in-tor-rtcompat' into 'main'opara2025-08-2110-14/+481
|\ | | | | | | | | smol: Implement smol in tor-rtcompat See merge request tpo/core/arti!2986
| * smol: Implement smol in tor-rtcompatNiel Duysters2025-08-2110-14/+481
| |
* | Document why we are using ring with rustlsNick Mathewson2025-08-191-3/+21
|/ | | | See #1977, #2122.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-075-8/+6
| | | | | | | | | | | | | | 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.
* Merge branch 'windows_warnings' into 'main'opara2025-08-053-0/+5
|\ | | | | | | | | Fix Windows compile warnings See merge request tpo/core/arti!3114
| * Fix Windows compile warningsTobias Stoeckmann2025-08-053-0/+5
| | | | | | | | | | Use unix-specific crates only if needed and suppress clippy warnings of unused variables if their usage is unix-specific.
* | Fix errors from rustdoc nightly.Nick Mathewson2025-08-051-1/+1
|/
* Typo fixes (automatic and hand-verified)Nick Mathewson2025-07-091-2/+2
| | | | Made with https://crates.io/crates/typos-cli
* tor-rtcompat, tor-rtmock: Allow unused functions.Gabriela Moldovan2025-07-071-0/+1
| | | | These only serve as a compile-time check.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* tor-rtmock: Blocking::blocking_io: add clarificationIan Jackson2025-06-231-0/+3
|
* tor-rtmock: Blocking::spawn_blocking: clarify drop behaviourIan Jackson2025-06-231-0/+6
| | | | | Explain that you don't need to .await the returned future, and say what happens when you drop it.