summaryrefslogtreecommitdiff
path: root/crates/arti-relay
Commit message (Collapse)AuthorAgeFilesLines
* maint: bump minor versions of all published cratesSteven Engler2025-10-291-16/+16
| | | | | | | ```bash readarray -t publish < <(cargo metadata --format-version 1 | jq -r '.packages[] | select((.id | startswith("path+file:///")) and (.rust_version != null) and (.publish == null or .publish == true or .publish != [])) | .name') for package in "${publish[@]}"; do echo "$package:"; cargo set-version --bump minor -p "$package"; done ```
* maint: fixup featuresSteven Engler2025-10-281-0/+1
| | | | | | ```bash cargo run -p fixup-features -- --exclude examples/ --exclude maint/ Cargo.toml ```
* arti-relay: use `Void` for `TorRelay::run`Steven Engler2025-10-274-10/+17
|
* 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-213-1/+51
|
* Merge branch 'ticket2217_01' into 'main'David Goulet2025-10-214-11/+106
|\ | | | | | | | | relay: Implement a first relay background task See merge request tpo/core/arti!3363
| * 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]>
* | Bump MSRV from 1.85.1 to 1.86Clara Engler2025-10-211-1/+1
|/
* 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-082-8/+61
|
* 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
|
* Merge branch 'arti-relay-rsa-keys' into 'main'wesleyac2025-10-061-0/+3
|\ | | | | | | | | Lay foundations for RSA keys in keystore. See merge request tpo/core/arti!3296
| * 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.
* | release: Bump versions.Wesley Aptekar-Cassels2025-10-021-15/+15
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because we've updated our MSRV, we must bump the minor version for every package. This was done as follows: cargo set-version -p arti 1.6.0 cargo set-version -p oneshot-fused-workaround 0.4.0 cargo set-version -p slotmap-careful 0.4.0 cargo set-version -p test-temp-dir 0.5.0 cargo set-version -p fslock-guard 0.4.0 cargo set-version -p hashx 0.5.0 cargo set-version -p equix 0.4.0 cargo set-version -p caret 0.7.0 cargo set-version -p fs-mistrust 0.12.0 cargo set-version -p safelog 0.6.0 cargo set-version -p retry-error 0.8.0 xargs -I P <<END cargo set-version -p P 0.35.0 tor-basic-utils tor-error tor-general-addr tor-geoip tor-rtcompat tor-rtmock tor-async-utils tor-config tor-config-path tor-rpc-connect tor-log-ratelim tor-rpcbase tor-memquota tor-units tor-llcrypto tor-bytes tor-protover tor-checkable tor-cert tor-key-forge tor-hscrypto tor-socksproto tor-linkspec tor-cell tor-proto tor-netdoc tor-consdiff tor-netdir tor-relay-selection tor-persist tor-keymgr tor-chanmgr tor-ptmgr tor-dircommon tor-guardmgr tor-circmgr tor-dirclient tor-dirmgr tor-dirserver tor-hsclient tor-hsservice tor-hsrproxy tor-relay-crypto arti-client arti-relay arti-rpcserver arti-ureq arti-rpc-client-core END
* Bump MSRV from 1.85 to 1.85.1Nick Mathewson2025-09-091-1/+1
| | | | Closes #2107
* Require tracing-subscriber 0.3.20Nick Mathewson2025-09-021-1/+1
| | | | Fixes RUSTSEC-2025-0055.
* Bump the minor version of every published crate except for `arti`.Nick Mathewson2025-08-281-15/+15
| | | | | | | | Per policy, we bump the minor version of every tor-*, arti-* crate on each release. We have updated our MSRV, so we're treating this as a breaking change for our non-(arti/tor)-prefixed crates too.
* docs: remove outdated comments about rustls/ring licenseSteven Engler2025-08-211-3/+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]>
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-073-4/+4
| | | | | | | | | | | | | | 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
|
* Set MSRV to 1.85.Nick Mathewson2025-08-051-1/+1
|
* Version bumps for 1.4.6Ian Jackson2025-08-051-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made with the following shell script: export CARGO='nailing-cargo -Eu' # Non-functional changes only maint/bump_nodep hashx # Special $CARGO set-version -p arti 1.4.6 # Additional features, no breaking changes, depended on in tree $CARGO set-version -p safelog 0.4.8 # Unconditional bump to 0.33.0 xargs -I P <<END $CARGO set-version -p P 0.33.0 tor-error tor-general-addr tor-geoip tor-rtcompat tor-rtmock tor-async-utils tor-config tor-config-path tor-rpc-connect tor-log-ratelim tor-rpcbase tor-memquota tor-units tor-llcrypto tor-bytes tor-protover tor-checkable tor-cert tor-key-forge tor-hscrypto tor-socksproto tor-linkspec tor-cell tor-proto tor-netdoc tor-consdiff tor-netdir tor-relay-selection tor-persist tor-chanmgr tor-ptmgr tor-guardmgr tor-circmgr tor-dirclient tor-dirmgr tor-keymgr tor-hsclient tor-hsservice tor-hsrproxy tor-relay-crypto arti-client arti-relay arti-rpcserver arti-ureq arti-rpc-client-core END
* arti-relay: always enable "tor-memquota/memquota"Steven Engler2025-07-311-2/+1
|
* Bump all the unstable tor- and arti- crates to 0.32.0.Gabriela Moldovan2025-07-071-13/+13
| | | | | | | | | | Done using: ``` for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do cargo set-version -p $crate 0.32.0 done ```
* Bump the versions of the non-{arti-,tor-} crates.Gabriela Moldovan2025-07-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The non-{arti-,tor-} crates are: ``` ./maint/list_crates | rg -v '^(tor|arti)' oneshot-fused-workaround slotmap-careful test-temp-dir fslock-guard hashx equix caret fs-mistrust safelog retry-error ``` We split them in the following categories: * crates with no changes (no version bumps): None ``` maint/changed_crates -v "arti-v$LAST_VERSION" 2>&1 >/dev/null | grep -i "no change" | grep -v '\(tor\|arti\)-' ``` * crates that only have non-functional changes (bump the patch version): - oneshot-fused-workaround - slotmap-careful - test-temp-dir - fslock-guard - hashx - equix - caret - safelog - retry-error * crates where APIs were broken (bump minor): - fs-mistrust (the implicit once_cell feature was removed) The bumps from this commit were created using this script: ``` PATCH=" oneshot-fused-workaround slotmap-careful test-temp-dir fslock-guard hashx equix caret safelog retry-error " for crate in $PATCH; do cargo set-version --bump patch -p $crate; done MINOR=" fs-mistrust " for crate in $MINOR; do cargo set-version --bump minor -p $crate; done ```
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* arti-relay: Removed dependency on `once_cell`hashcatHitman2025-06-143-8/+7
| | | | | | - Replaced `once_cell::sync::Lazy` with `std::sync::LazyLock`. Signed-off-by: hashcatHitman <[email protected]>
* release: Bump all tor-/arti- crates to 0.31.0.Alexander Hansen Færøy2025-06-051-13/+13
| | | | | | | | This was done using: for crate in $(./maint/list_crates | grep -P '^tor-|^arti-'); do cargo set-version -p $crate 0.31.0 done
* release: Bump crates non-arti/non-tor crates with functional changes.Alexander Hansen Færøy2025-06-051-1/+1
| | | | | | | | This is done using: cargo set-version --bump patch -p fs-mistrust cargo set-version --bump patch -p equix cargo set-version --bump patch -p fslock-guard
* All crates: bump rust-version to 1.83.Nick Mathewson2025-05-131-1/+1
|