summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* tor-key-forge: Distinguish between parsed certs and encodable certs.Gabriela Moldovan2025-01-132-12/+16
| | | | | | | | | | | | | | | We need two different types to represent * certs that have been parsed, but not yet validated (`KeyUnknownCert`) * newly generated encodable certs (`EncodedEd25519Cert`) Currently, we don't use `KeyUnknownCert` anywhere, and instead use `EncodedEd25519Cert` to represent "parsed" but not-yet-validated certs. This approach is wrong and relies on a broken (no-op) `EncodedEd25519Cert::from_bytes` implementation. A future commit will address this problem by replacing `EncodedEd25519Cert::from_bytes` with `Ed25519Cert::decode` to actually parse the cert upon retrieving it from the keystore.
* tor-keymgr: Replace from_encodable_cert with validation function.Gabriela Moldovan2025-01-132-22/+7
| | | | | | | | In practice, we won't be able to obtain an `ToEncodableCert` type from an `EncodableItem` cert without validating it first, so we need to collapse `validate` into `from_encodable_cert`. Part of #1768
* tor-key-forge: Export some additional tor-cert types.Gabriela Moldovan2025-01-131-3/+3
| | | | This will soon be used.
* 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-132-1/+15
| | | | This makes it more similar to arti.
* arti-relay: add `LoggingConfig`Steven Engler2025-01-132-0/+41
|
* 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
|
* arti-relay: added a base `CfgPathResolver`Steven Engler2025-01-132-5/+124
|
* arti-relay: impl `TopLevel` for `TorRelayConfig`Steven Engler2025-01-131-0/+4
|
* arti-relay: added `From<LogLevel> for tracing::metadata::Level`Steven Engler2025-01-131-1/+13
|
* arti-relay: make cli `log_level` an `Option`Steven Engler2025-01-131-4/+3
| | | | This is an override option, which we want to default to "unset".
* arti-relay: test that global cli options have "global" setSteven Engler2025-01-131-1/+16
|
* arti-relay: moved global cli options to common structSteven Engler2025-01-131-16/+24
|
* Merge branch 'rpc-banner' into 'main'Nick Mathewson2025-01-095-8/+53
|\ | | | | | | | | | | | | RPC spec: specify banner format. Closes #1753 See merge request tpo/core/arti!2700
| * Implement banner for RPC protocol.Nick Mathewson2025-01-095-8/+53
| | | | | | | | Closes #1753
* | tor-config: Test that uninteresting events get ignored.Gabriela Moldovan2025-01-091-3/+21
| |
* | tor-config: Rewrite match for readability.Gabriela Moldovan2025-01-091-3/+5
| | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2696#note_3145971
* | tor-config: Avoid using EventKind::Any in the tests.Gabriela Moldovan2025-01-091-3/+4
| | | | | | | | Events of type `Any` now get discarded by the event handler.
* | tor-config: Handle rescan events before filtering.Gabriela Moldovan2025-01-091-3/+2
| | | | | | | | | | This enables us to catch "rescan" events, regardless of their underlying `EventKind`.
* | tor-config: Make the `FileWatcher` ignore non-mutating file events.Gabriela Moldovan2025-01-091-1/+13
| | | | | | | | | | | | | | | | Without this, setting `watch_configuration = true` results in endless config reloading due to arti accessing the config (which triggers an access event, which in turn, triggers a config reload, and so on). Closes #1794
* | tor-proto: fix bad indentationSteven Engler2025-01-091-3/+3
| |
* | tor-proto: test `Channel::wait_for_close`Steven Engler2025-01-091-5/+35
| |
* | tor-proto: make `Channel::wait_for_close` non-experimentalSteven Engler2025-01-091-1/+0
| |
* | tor-proto: `Channel::wait_for_close` return success statusSteven Engler2025-01-092-14/+42
|/ | | | | | This had a TODO about returning a "status indication instead of just ()" so this commit adds some status indication that we can expand later if needed.
* tor-circmgr: Add trace log on circuit build timeout.Wesley Aptekar-Cassels2025-01-081-0/+2
| | | | This may help debugging #1792.
* tor-rtcompat: Note that SpawnBlocking isn't for CPU-bound tasks.Wesley Aptekar-Cassels2025-01-071-1/+1
|
* tor-rtcompat: Use GAT instead of RPIT in SpawnBlocking trait.Wesley Aptekar-Cassels2025-01-077-9/+25
| | | | Due to the limitations on RPIT, it's better to use a GAT for now.
* tor-rtcompat: Add note about what to use spawn_blocking for.Wesley Aptekar-Cassels2025-01-071-1/+5
|
* tor-rtcompat: Note SpawnBlocking semver break.Wesley Aptekar-Cassels2025-01-071-0/+1
|
* tor-rtmock: Add task names for spawn_obj and spawn_blocking.Wesley Aptekar-Cassels2025-01-071-2/+2
|
* tor-rtcompat: Link to spawn_blocking docs.Wesley Aptekar-Cassels2025-01-071-0/+6
|
* tor-rtcompat: Add spawn_blocking to Runtime trait.Wesley Aptekar-Cassels2025-01-078-3/+114
| | | | | This adds a new SpawnBlocking trait, which exposes the spawn_blocking function that tokio, async-std, and other runtimes have.
* Remove semver.md files after 1.3.2 releaseNick Mathewson2025-01-073-5/+0
|
* Update versions in crates/*/bench.Nick Mathewson2025-01-072-3/+3
|
* Bump arti crate to 1.3.2Nick Mathewson2025-01-073-3/+3
| | | | | | | Done with ``` cargo set-version --bump patch -p arti ```
* Bump versions of internal arti crates for Arti 1.3.2Nick Mathewson2025-01-0749-430/+430
| | | | | | | | | | | | | The affected crates follow our regular versioning. They all get bumped to 0.26.0. Done with ``` for crate in $(./maint/list_crates |grep '^arti-\|tor-' ); do cargo set-version --bump minor -p $crate; done ```
* Patchlevel bumps for Arti 1.3.2Nick Mathewson2025-01-0710-10/+10
| | | | | | | | | | | | | | | | | | These crates are versioned independently. These crates have had changes to clippy warnings, and to non-exported dependencies. Additionally, the fs-mistrust crate has had only backward-compatible changes, and no new APIs. Therefore, these crates all get patchlevel bumps. Other crates don't need their dependencies updated. Done with ``` ./maint/bump_nodep $(./maint/list_crates |grep -v '^arti\|tor' ) ```
* Merge branch 'update' into 'main'Alexander Hansen Færøy2025-01-072-108/+106
|\ | | | | | | | | Run "cargo update" in preparation for release. See merge request tpo/core/arti!2690
| * Run "cargo update" in preparation for release.Nick Mathewson2025-01-072-108/+106
| |
* | Merge branch 'mod-module-files' into 'main'Nick Mathewson2025-01-0761-0/+61
|\ \ | |/ |/| | | | | clippy: deny `mod_module_files` See merge request tpo/core/arti!2689
| * clippy: deny `mod_module_files`Steven Engler2025-01-0661-0/+61
| | | | | | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
* | fix: fix typosDimitris Apostolou2025-01-0616-18/+18
| |
* | Merge branch 'bump-dynasmrt-3.0.1' into 'main'Nick Mathewson2025-01-064-96/+58
|\ \ | | | | | | | | | | | | | | | | | | Bump to dynasmrt 3.0.1 Closes #1608 See merge request tpo/core/arti!2686