summaryrefslogtreecommitdiff
path: root/crates/arti-relay/src/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* arti-relay: remove relay builderSteven Engler2025-01-131-2/+3
| | | | | | | This is a bunch of boilerplate code that we don't currently need, and may not need in the future since we don't need to provide a lot of library-API-level customization for `TorRelay` like we do with `TorClient`.
* arti-relay: remove TODO comment about runtimesSteven Engler2024-11-141-7/+3
|
* arti-relay: add 'build-info' subcommandSteven Engler2024-11-131-0/+11
|
* arti-relay: add clap for cliSteven Engler2024-11-131-2/+23
| | | | The options are inspired by the arti cli interface.
* arti-relay: Remove its library crateDavid Goulet2024-10-101-0/+5
| | | | | | | | | | | | Simply, the lib.rs is renamed to relay.rs (containing TorRelay object) so this crate can never be used as a library. This is important because at the moment, we don't want to have a relay stable API that can be used to embed relays in applications. Closes #1674 Signed-off-by: David Goulet <[email protected]>
* arti-relay: Add a binary to the crateDavid Goulet2024-10-101-0/+8
At the moment, it is an empty main() acting as a place holder for this crate to become solely a binary crate. Write up a basic README.md in order to explain the current state. Next commit will remove the libary component by renaming lib.rs Part of #1674 Signed-off-by: David Goulet <[email protected]>