summaryrefslogtreecommitdiff
path: root/crates/arti-relay/src/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* arti-relay: improve ntor key loggingSteven Engler2026-04-141-5/+8
| | | | We only need the max, not the entire sorted list.
* arti-relay: log the public ntor keySteven Engler2026-04-141-3/+32
| | | | This is useful for testing.
* arti-relay: move key logging (part 3)Steven Engler2026-04-131-3/+0
| | | | Small cleanup.
* arti-relay: move key logging (part 2)Steven Engler2026-04-131-21/+21
| | | | Code movement only.
* arti-relay: move key logging (part 1)Steven Engler2026-04-131-0/+11
| | | | Set up function placeholder.
* arti-relay: Change CryptoProvider to aws-lc-rs.Nick Mathewson2026-04-081-2/+3
|
* arti-relay: Move all key specifiers to a new keys module (fmt)Gabriela Moldovan2026-04-011-2/+2
|
* arti-relay: Move all key specifiers to a new keys moduleGabriela Moldovan2026-04-011-4/+3
| | | | | | | | | | | This extracts the key specifier types out of `tor-relay-crypto`, which * makes the code layout consistent with the hidden service crates (the key specifiers are defined in a `keys` module in `tor-hsservice`, while the key wrapper types live in `tor-hscrypto::pk`) * helps reduce the API surface: the key specifiers are only used in `arti-relay`, so we can move them there and make them `pub(crate)` instead of `pub`
* arti-relay: add `log_sensitive_information` config optionSteven Engler2026-03-241-0/+20
|
* arti-relay: change a 'debug' log to 'info'Steven Engler2026-03-241-2/+2
| | | | | I had intended for this to be 'info' in f287ec7910, but must have accidentally wrote 'debug'.
* Fix typosTobias Stoeckmann2026-03-241-1/+1
| | | | Typos found with codespell
* Fix grammar typosTobias Stoeckmann2026-03-151-1/+1
|
* Fix word duplicate typosTobias Stoeckmann2026-03-151-1/+1
|
* arti-relay: Log relay identitiesSteven Engler2026-03-121-0/+28
|
* tor-basic-utils: move `iter_join` from arti-relaySteven Engler2026-03-031-1/+2
| | | | Will clean this up in the following commit.
* 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.
* arti-relay: rename 'bootstrap()' method to 'init()'Steven Engler2026-02-031-1/+1
| | | | This method won't really be used for bootstrapping anymore.
* arti-relay: move code into a "client" objectSteven Engler2026-02-031-0/+1
|
* maint/add_warning: Run script to add new warningGabriela Moldovan2026-01-271-0/+1
| | | | This adds the lint to all our crates.
* arti-relay: call `tor_log_ratelim::install_runtime`Steven Engler2026-01-141-0/+4
|
* arti-relay: install default ring crypto providerSteven Engler2025-12-091-0/+6
| | | | | | | | This is what arti uses, and fixes the warning: ```text WARN tor_rtcompat::impls::rustls: Creating a RustlsRuntime, but no CryptoProvider is installed. The application should call CryptoProvider::install_default() ```
* arti-relay: move `iter_join` to a new `util` moduleSteven Engler2025-11-121-28/+2
|
* Merge branch 'relay-bin-4' into 'main'opara2025-11-111-2/+10
|\ | | | | | | | | arti-relay: Add OR port listener task See merge request tpo/core/arti!3396
| * arti-relay: use anyhow's error formattingSteven Engler2025-11-051-2/+10
| |
* | Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
|/ | | | 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-041-1/+1
|
* arti-relay: use `Void` for `TorRelay::run`Steven Engler2025-10-271-2/+5
|
* arti-relay: add some TODO commentsSteven Engler2025-10-211-0/+3
|
* arti-relay: use `TokioRustlsRuntime` instead of `PreferredRuntime`Steven Engler2025-10-211-5/+8
|
* relay: Implement a blocking run() that starts the relayDavid Goulet2025-10-211-3/+6
| | | | | | | | | | | | | | | | We have bootstrap() to prepare everything we need before starting the relay which yields a TorRelay. This commit then adds a run() function which starts the relay by launching background task. At the moment, we only have one task and it is the channel expiry one. The relay blocks on the task handle set until one task is on error or stops which leads to shutting down the relay. Part of #2217 Signed-off-by: David Goulet <[email protected]>
* relay: Add channel housekeeping taskDavid Goulet2025-10-211-0/+1
| | | | | | | | | | | | This is a background task in charge of expiring closing channels and future work is to also prune duplicate channels. This is not used nor called at this commit, next commit will add the task handling. Part of #2217 Signed-off-by: David Goulet <[email protected]>
* arti-relay: refactor error handlingSteven Engler2025-10-201-3/+11
| | | | | | | We decided to move away from the `Error` + `ErrorDetail` all-encompassing enum design, and will use `anyhow::Error` in more places. When we need to handle specific errors, we will create smaller more-specific error types in those cases.
* arti-relay: replaced `Runtime + ToplevelBlockOn` with `ToplevelRuntime`Steven Engler2025-10-081-3/+3
|
* arti-relay: add a new `TorRelay`Steven Engler2025-10-081-1/+2
|
* arti-relay: store the `TorRelayConfig` in the `InertTorRelay`Steven Engler2025-10-081-2/+2
|
* arti-relay: change `TorRelay` into `InertTorRelay`Steven Engler2025-10-081-3/+3
| | | | We'll add a `TorRelay` back in a following commit.
* arti-relay: log the override options usedSteven Engler2025-10-081-1/+32
|
* arti-relay: add mainloopSteven Engler2025-10-081-8/+59
|
* arti-relay: add `ToplevelBlockOn` to returned runtimeSteven Engler2025-10-081-2/+2
|
* arti-relay: don't prepend "arti-relay: " to log linesSteven Engler2025-10-081-10/+2
|
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-2/+2
| | | | | | | | | | | | | | 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.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* arti-relay: fix rust/clippy lintsSteven Engler2025-01-141-1/+7
|
* arti-relay: add rust/clippy lintsSteven Engler2025-01-141-0/+43
|
* arti-relay: don't use environment var in `Mistrust`Steven Engler2025-01-131-2/+4
|
* arti-relay: add basic placeholder loggerSteven Engler2025-01-131-4/+61
| | | | | This is probably not what the final logger would look like, but it's a fine placeholder for now.
* arti-relay: add config loadingSteven Engler2025-01-131-9/+47
|
* arti-relay: make `main` a wrapper around a `main_main`Steven Engler2025-01-131-1/+13
| | | | This makes it more similar to arti.
* arti-relay: `TorRelay` takes a `CfgPathResolver`Steven Engler2025-01-131-2/+3
|