aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-relay/src
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-273-10/+16
|
* arti-relay: add line breaks between `InertTorRelay` fieldsSteven Engler2025-10-211-0/+5
|
* arti-relay: add a `MemoryQuotaTracker`Steven Engler2025-10-211-3/+12
|
* arti-relay: add a `SystemConfig` to the relay configSteven Engler2025-10-211-0/+18
|
* arti-relay: add some TODO commentsSteven Engler2025-10-211-0/+3
|
* arti-relay: small refactoringSteven Engler2025-10-211-7/+6
|
* arti-relay: generate keys only when bootstrappingSteven Engler2025-10-211-3/+3
| | | | | We don't want to create new files just when creating a `InertTorRelay`. We should only generate the keys before bootstrapping.
* arti-relay: add note to `StorageConfig::permissions`Steven Engler2025-10-211-0/+6
|
* arti-relay: copy `state_mgr.try_lock()` from arti-clientSteven Engler2025-10-211-1/+8
|
* arti-relay: small change to `create_keymgr()`Steven Engler2025-10-212-30/+8
|
* arti-relay: use `TokioRustlsRuntime` instead of `PreferredRuntime`Steven Engler2025-10-211-5/+8
|
* arti-relay: initialize the `StateDirectory` and `FsStateMgr`Steven Engler2025-10-212-1/+50
|
* relay: Implement a blocking run() that starts the relayDavid Goulet2025-10-212-11/+34
| | | | | | | | | | | | | | | | 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-213-0/+72
| | | | | | | | | | | | 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-203-142/+34
| | | | | | | 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: expand comment on `InertTorRelay`Steven Engler2025-10-081-0/+17
|
* arti-relay: change `allow` to `expect`Steven Engler2025-10-081-5/+4
| | | | And remove one that we didn't need.
* arti-relay: add a new `TorRelay`Steven Engler2025-10-082-1/+50
|
* arti-relay: store the `TorRelayConfig` in the `InertTorRelay`Steven Engler2025-10-082-4/+7
|
* arti-relay: change `TorRelay` into `InertTorRelay`Steven Engler2025-10-082-24/+9
| | | | 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
|
* arti-relay: re-add trailing '/' to default paths in help textSteven Engler2025-10-081-2/+12
|
* Lay foundations for RSA keys in keystore.Wesley Aptekar-Cassels2025-09-301-0/+3
| | | | | | This currently can't be used due to upstream limitations in the ssh_key crate, which will be removed likely in the next release. In the meantime, we can put in all the groundwork.
* 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]>
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-072-3/+3
| | | | | | | | | | | | | | 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.
* Remove a now-needless doc comment.Nick Mathewson2025-08-051-2/+0
|
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* arti-relay: Removed dependency on `once_cell`hashcatHitman2025-06-142-7/+7
| | | | | | - Replaced `once_cell::sync::Lazy` with `std::sync::LazyLock`. Signed-off-by: hashcatHitman <[email protected]>
* arti-relay: standardized MSRV TODOhashcatHitman2025-04-161-1/+1
| | | | | - Part of a series of commits aimed at replacing all MSRV-related TODOs with a standardized format, which should be easier to find when the MSRV is bumped.
* Use CautiousRng for keys going into the KeyMgr.Nick Mathewson2025-03-241-1/+1
|
* squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-181-1/+1
| | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()`
* arti-relay: remove 'override_net_params' configSteven Engler2025-01-142-21/+2
| | | | | | | We think that for relays, the 'override_net_params' config option is overly broad and a footgun. We can always re-add this back later if we want to, but for now the focus will be on exposing specific config options for features that are okay to be changed by users.
* arti-relay: fix rust/clippy lintsSteven Engler2025-01-144-4/+34
|
* arti-relay: add rust/clippy lintsSteven Engler2025-01-143-0/+71
|
* arti-relay: don't use environment var in `Mistrust`Steven Engler2025-01-132-26/+4
|
* arti-relay: remove `TorRelayConfigBuilder::from_directories`Steven Engler2025-01-131-27/+0
| | | | | I don't think we'll ever need this. Users will set the directories through the config file.
* 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-132-13/+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: add `LoggingConfig`Steven Engler2025-01-131-0/+40
|
* arti-relay: rework default config file path handlingSteven Engler2025-01-131-15/+91
|
* arti-relay: add constant `ARTI_FS_DISABLE_PERMISSION_CHECKS`Steven Engler2025-01-131-0/+24
| | | | We don't actually use it yet, but we do show it in the '--help' text.
* arti-relay: `TorRelay` takes a `CfgPathResolver`Steven Engler2025-01-132-8/+20
|
* arti-relay: remove relay builderSteven Engler2025-01-133-71/+8
| | | | | | | 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: default config paths now use path resolverSteven Engler2025-01-133-12/+21
|