summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | tor-netdoc: Introduce "encode" feature for the like-named moduleIan Jackson2025-11-104-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to introduce facilities for encoding more generally, and we'll want a way to enable them. Instead, have a separate feature for *encoding* documents.
| * | | | | | tor-netdoc: Rename the `build` module to `encode`Ian Jackson2025-11-105-8/+8
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | The word "build" so often in Rust means builder pattern. This module contains functions for encoding.
* | | | | | Merge branch 'bug2118a' into 'main'wesleyac2025-11-101-14/+29
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | `arti-client`: Move `create_onion_service()` to `InertTorClient` See merge request tpo/core/arti!3435
| * | | | | Make create_onion_service() correctionsNeel Chauhan2025-11-101-17/+2
| | | | | |
| * | | | | Mention InertTorClient in client.rsNeel Chauhan2025-11-101-1/+1
| | | | | |
| * | | | | Don't assume we have inert_client in TorClientNeel Chauhan2025-11-041-2/+2
| | | | | |
| * | | | | `arti-client`: Move `create_onion_service()` to `InertTorClient`Neel Chauhan2025-11-041-15/+45
| | | | | | | | | | | | | | | | | | | | | | | | Part of #2118.
* | | | | | Merge branch 'p2-dedup-1' into 'main'Ian Jackson2025-11-102-136/+146
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-netdoc: parse2 derive: Some deduplication See merge request tpo/core/arti!3450
| * | | | | | tor-netdoc: Fix typoIan Jackson2025-11-101-1/+1
| | | | | | |
| * | | | | | tor-netdoc: parse2 derive: deduplicate item parsingIan Jackson2025-11-061-24/+23
| | | | | | |
| * | | | | | tor-netdoc: parse2 derive: deduplicate item set selectorsIan Jackson2025-11-061-47/+62
| | | | | | |
| * | | | | | tor-netdoc: parse2 derive: deduplicate F_EFFECTIVE_TYPEIan Jackson2025-11-061-24/+13
| | | | | | |
| * | | | | | tor-netdoc: parse2 derive: deduplication: field types and keywordsIan Jackson2025-11-061-36/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have the module expect the use site to determine (mostly) the field kind. Document this expectation. Now NetdocParseableCommon can have the keyword-related definitions.
| * | | | | | tor-netdoc: parse2 derive: deduplication: start a moduleIan Jackson2025-11-062-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Put one textually-identical define in it, to start with.
* | | | | | | Merge branch '2249-todo' into 'main'Ian Jackson2025-11-101-0/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arti-client: Add TODO for #2249. See merge request tpo/core/arti!3453
| * | | | | | | arti-client: Add TODO for #2249.Wesley Aptekar-Cassels2025-11-101-0/+1
| | | | | | | |
* | | | | | | | Merge branch 'bug1588' into 'main'Ian Jackson2025-11-103-39/+39
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rpclib: Rename `OutPtr` to `OutBoxedPtr` Closes #1588 See merge request tpo/core/arti!3439
| * | | | | | | rpclib: Rename `OutPtr` to `OutBoxedPtr`Neel Chauhan2025-11-063-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #1588.
* | | | | | | | 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.
* | | | | | | | | Merge branch 'reduce-channel-frame-high-water-mark' into 'main'Nick Mathewson2025-11-101-1/+3
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-proto: Reduce `high_water_mark` of ChannelFrame See merge request tpo/core/arti!3447
| * | | | | | | | | tor-proto: Reduce `high_water_mark` of ChannelFramenield2025-11-061-1/+3
| | |_|_|_|/ / / / | |/| | | | | | |
* | | | | | | | | Merge branch 'relay-circ' into 'main'David Goulet2025-11-103-16/+24
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | proto: Rename RelayReatorHandle to RelayCirc, make it pub See merge request tpo/core/arti!3410
| * | | | | | | | | proto: Remove doc ref to private itemGabriela Moldovan2025-10-291-1/+1
| | | | | | | | | |
| * | | | | | | | | proto: Add RelayCirc API for checking if circuit is closedGabriela Moldovan2025-10-291-0/+7
| | | | | | | | | |
| * | | | | | | | | proto: Remove redundant channel from RelayCircGabriela Moldovan2025-10-292-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't really need this channel here, because we already have control and command channels for checking if the reactor task is still alive.
| * | | | | | | | | proto: Make RelayCirc publicGabriela Moldovan2025-10-292-2/+2
| | | | | | | | | |
| * | | | | | | | | proto: Rename RelayReatorHandle to RelayCircGabriela Moldovan2025-10-292-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While this is technically a "reactor handle", I think RelayCirc sounds better, because this is essentially our only public API for interacting with a relay circuit (it will be used outside of tor-proto). (This would also be consistent with our existing ClientCirc client-side terminology).
| * | | | | | | | | proto: Move RelayReactorHandle to relay moduleGabriela Moldovan2025-10-292-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will soon become `pub`, so I am factoring it out of `reactor.rs`.
| * | | | | | | | | proto: Update RelayReactorHandle docsGabriela Moldovan2025-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BackwardReactor is an implementation detail, so it shouldn't really be mentioned in the soon-to-be-public-facing docs. And besides, the control messages are no longer handled by the BackwardReactor.
* | | | | | | | | | Merge branch 'deftly-1.5' into 'main'Alexander Hansen Færøy2025-11-1026-27/+27
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump derive-deftly to 1.5.0 See merge request tpo/core/arti!3451
| * | | | | | | | | | Bump derive-deftly to 1.5.0Ian Jackson2025-11-0726-27/+27
| | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the meta attributes with optional values feature and also hygiene rework for modules. The breaking changes don't break arti.
* | | | | | | | | | Merge branch 'cell-sender' into 'main'Alexander Hansen Færøy2025-11-103-10/+10
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | proto: Move cell_sender out of the client module See merge request tpo/core/arti!3407
| * | | | | | | | | proto: Move cell_sender out of the client moduleGabriela Moldovan2025-10-283-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Soon we'll use CircuitCellSender in the relay reactor too (we need to, because it provides a useful abstraction for handling block/unblock padding actions, and because it has some handy helper functions such as `congestion_signals()`).
| * | | | | | | | | proto: Make everything in CircuitCellSender pub(crate)Gabriela Moldovan2025-10-281-8/+8
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is in preparation for moving `CircuitCellSender` out of the client module (it makes the next commit easier to review, because `cell_sender.rs` will be moved without any modifications).
* | | | | | | | | arti: better error when tokio-console in cfg but feature is absent.Nick Mathewson2025-11-061-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the pattern we used elsewhere with the "rpc" option. IMO, this kind of thing is another argument in favor if arti#1704 (redoing config types using derive-deftly.)
* | | | | | | | | arti: Experimental support for tokio-consoleNick Mathewson2025-11-065-0/+64
| |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is controlled by a new option, `logging.tokio_console.enabled`. It requires building with `--cfg tokio_unstable`. See documentation and comments for more information.
* | | | | | | | Merge branch 'deftly-1.4' into 'main'opara2025-11-0626-27/+27
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump derive-deftly to 1.4.0 See merge request tpo/core/arti!3448
| * | | | | | | | Bump derive-deftly to 1.4.0Ian Jackson2025-11-0626-27/+27
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will let us use the new modules feature. There are no breaking changes to beta features in 1.4.0.
* | | | | | | | Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-06358-388/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Run maint/add_warning
* | | | | | | | Conditionalise a test-only `use`Ian Jackson2025-11-061-1/+4
| | | | | | | |
* | | | | | | | Use a while let loop (to placate clippy)Ian Jackson2025-11-061-2/+1
| | | | | | | |
* | | | | | | | Decorate a use with an allowIan Jackson2025-11-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to depend on cfgs. As I say in #1060, I don't think precise cfg decoration of imports is sensible. Also, it shouldn't be my job to fix whatever this is...
* | | | | | | | Drop two use's that seem no longer to be necessaryIan Jackson2025-11-062-2/+2
|/ / / / / / /
* | | | | | | Merge branch 'dirserver-http-db' into 'main'Ian Jackson2025-11-052-120/+114
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | tor-dirserver: Apply database changes to http See merge request tpo/core/arti!3426
| * | | | | | tor-dirserver: clippy fixesClara Engler2025-11-032-4/+4
| | | | | | |
| * | | | | | tor-dirserver: Apply database changes to httpClara Engler2025-11-032-120/+114
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit applies the recent changes to the database module into the http and http::cache module. Notably, this includes the use of the database::sql! macro as well as the use of database::read_tx and database::rw_tx for creation transaction and saving, as well as retrying, although the latter one is subject to SQLite's own busy handler
* | | | | | 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.
* | | | | | all: run cargo fmtSteven Engler2025-11-0417-17/+17
| | | | | |
* | | | | | all: replace all uses of `futures::task::SpawnExt` with `tor_rtcompat::SpawnExt`Steven Engler2025-11-0437-46/+46
| | | | | |