summaryrefslogtreecommitdiff
path: root/crates/arti-client/src
Commit message (Collapse)AuthorAgeFilesLines
* Run maint/update-release-date.Gabriela Moldovan2025-12-021-1/+1
|
* Merge branch 'fix-typo' into 'main'Ian Jackson2025-11-271-1/+1
|\ | | | | | | | | arti-client: Fix typo See merge request tpo/core/arti!3504
| * arti-client: Fix typoMynacol2025-11-271-1/+1
| |
* | tor-circmgr: simplify `CircMgrConfig`Steven Engler2025-11-261-2/+7
| | | | | | | | | | | | | | Now that `vanguard_config()` is no longer conditional, we can handle `vanguard_config` just like other accessors. This is a breaking change, but I think we may as well make this change while we've already made another breaking change in the previous commit.
* | tor-circmgr,arti-client: `CircMgrConfig::vanguard_config` is always builtSteven Engler2025-11-261-5/+48
| |
* | opentelemetry: Instrument a bunch of functions.Wesley Aptekar-Cassels2025-11-242-0/+7
|/ | | | | These are all aimed at figuring out in more detail what's going on in #2079 and related issues.
* Merge branch 'disable-hidden-service' into 'main'wesleyac2025-11-121-12/+28
|\ | | | | | | | | | | | | arti/arti-client/tor-hsservice: Support disabling onion services in the config Closes #2133 See merge request tpo/core/arti!3253
| * arti(-client)/tor-hsservice: return None for disabled servicehashcatHitman2025-10-161-12/+28
| | | | | | | | | | | | | | | | | | | | There is no longer a hard error anywhere for trying to launch a service which is disabled in the config. Instead, it always means returning `Ok(None)`. The axum and hyper examples were updated again as a consequence. Signed-off-by: hashcatHitman <[email protected]>
| * arti(-client): graceful service disable in arti onlyhashcatHitman2025-10-161-27/+9
| | | | | | | | | | | | | | | | | | | | | | When a service is disabled in the config, `arti::onion_proxy::Proxy` handles it gracefully, and `arti_client::client::TorClient::launch_onion_service_with_hsid` and `arti_client::client::TorClient::launch_onion_service` both hard error. The axum and hyper examples were updated again as a consequence. Signed-off-by: hashcatHitman <[email protected]>
| * arti/arti-client: add graceful service disablehashcatHitman2025-10-161-9/+27
| | | | | | | | | | | | | | | | | | Hidden services disabled in the config are now handled more gracefully by arti/arti-client, before the hard error occurs. The axum and hyper examples were updated as a consequence. Signed-off-by: hashcatHitman <[email protected]>
* | 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.
* | | arti-client: Add TODO for #2249.Wesley Aptekar-Cassels2025-11-101-0/+1
| | |
* | | Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-067-8/+8
| | | | | | | | | | | | Run maint/add_warning
* | | all: run cargo fmtSteven Engler2025-11-041-1/+1
| | |
* | | all: replace all uses of `futures::task::SpawnExt` with `tor_rtcompat::SpawnExt`Steven Engler2025-11-042-3/+3
|/ /
* | arti-client: update `ARTI_CLIENT_RELEASE_DATE`Steven Engler2025-10-291-1/+1
| | | | | | | | | | | | ```bash ./maint/update-release-date ```
* | TorAddr: Add function to inspect the host as an IpAddr, if it is one.Nick Mathewson2025-10-281-0/+8
| |
* | arti-relay: copy `state_mgr.try_lock()` from arti-clientSteven Engler2025-10-211-0/+1
|/
* release: Update release date.wesleyac2025-10-021-1/+1
| | | We plan to release on Monday.
* release: Update release date.Wesley Aptekar-Cassels2025-10-021-1/+1
|
* 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-241-1/+14
| | | | | I've added these in places that are useful for the debugging that I've been doing.
* arti-client: add doc comments to `TorClient::create_onion_service()`Steven Engler2025-09-231-0/+14
|
* tor-dircommon: Implement proposal 330Clara Engler2025-09-161-18/+10
| | | | | | | This commit implements proposal 330 in the context of `tor-dircommon`, by replacing the single `Authority` structure used in a list context by a single structure called `AuthorityContacts` which contains all v3idents, upload, download, and vote endpoints in one central place.
* Move `FallbackDir` into `tor-dircommon`Clara Engler2025-09-111-2/+2
|
* Move `DirTolerance` into `tor-dircommon`Clara Engler2025-09-091-4/+3
| | | | | This commit moves the `DirTolerance` structure from `tor-dirmgr` into `tor-dircommon`.
* Move `DownloadSchedule` into `tor-dircommon`Clara Engler2025-09-081-3/+5
| | | | | This commit moves the `DowenloadSchedule` related types from `tor-dirmgr` into `tor-dircommon`.
* Move `NetworkStatus` to `tor-dircommon`Clara Engler2025-09-081-2/+2
| | | | | | This commit moves `NetworkStatus` from `tor-dirmgr::config` to `tor-dircommon::config` in order to start the work on a common place for configuration options shared by both directory implementations.
* tor-dircommon: Add dirports field to authorityClara Engler2025-09-021-2/+16
|
* tor-dircommon: Initial commitClara Engler2025-09-021-3/+4
| | | | | | | | | | | | | | This commit initializes the `tor-dircommon` crate: A crate serving the purpose to form an umbrella for the lowest common denominator primitives found across crates implementing (parts of) the directory specification. For now, the only such primitive is the found within the `authority` module, which has been refactored from `tor-dirmgr` into this crate, alongside additional getter functions due to the lack of `pub(crate)` in this context. In the future, we may move further primitives away from `tor-dirmgr` into `tor-dircommon`.
* fix documentation for StreamPrefs::connect_to_onion_services to match ↵Aiden McClelland2025-08-281-8/+1
| | | | | | changes in !2506 Signed-off-by: Aiden McClelland <[email protected]>
* Run "update-release-date"Nick Mathewson2025-08-281-1/+1
|
* Merge branch 'smol-add-impl-in-tor-rtcompat' into 'main'opara2025-08-211-1/+1
|\ | | | | | | | | smol: Implement smol in tor-rtcompat See merge request tpo/core/arti!2986
| * smol: Implement smol in tor-rtcompatNiel Duysters2025-08-211-1/+1
| |
* | chanmgr: Add KeyMgr to channel builderDavid Goulet2025-08-201-0/+1
| | | | | | | | | | | | | | This is so a relay can build authenticated channels. Several keys/cert are required for this that are within the key manager. Signed-off-by: David Goulet <[email protected]>
* | Add a few unit tests for create_unbootstrapped_async.Nick Mathewson2025-08-191-0/+49
| | | | | | | | | | | | Closes #2121 Co-Authored-by: thesw4rm
* | proto: Move the `stream` module under `client` (breaking).Gabriela Moldovan2025-08-183-3/+3
|/ | | | | | | | | | | | The `stream` module is client-specific, for the most part, so I am moving it under `client`. Later on, we will factor out the parts that can be shared with the relay implementation. Note: this is a breaking change as the deleted `stream` module was `pub`. We could've kept the module and reexported from it the public types from `tor_proto::client::stream`, but I think it's better to have this `client` namespacing, because it makes the separation between the client and relay parts clearer.
* 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.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-077-27/+40
| | | | | | | | | | | | | | 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-071-3/+5
| | | | | | | | | | | | | | | | | | 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.
* 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-061-5/+13
| | | | | Since we now allow it to be turned on, we can include it among our supported protocols.
* arti-client: Resolve XXX to make CI run.Gabriela Moldovan2025-08-051-23/+26
|
* arti-client: Use the new Tunnel interfaceDavid Goulet2025-08-052-26/+34
| | | | Signed-off-by: David Goulet <[email protected]>
* hs: Use the new Tunnel interface for onion serviceDavid Goulet2025-08-051-1/+1
|
* Update the release dateIan Jackson2025-08-051-1/+1
|