summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * tor-circmgr: Add a new hspath module for building onion service circuits.Gabriela Moldovan2024-03-142-0/+78
| |
| * tor-circmgr: Implement AnonymousPathBuilder for ExitPathBuilder.Gabriela Moldovan2024-03-142-162/+27
| |
| * tor-circmgr: Add AnonymousPathBuilder trait.Gabriela Moldovan2024-03-141-4/+177
|/ | | | | | | | | | The `pick_path()` default implementation is an almost verbatim copy of `ExitPathBuilder::pick_path()`. The only difference is that instead of using values from `self`, the `AnonymousPathBuilder::pick_path()` uses the values returned by the different `AnonymousPathBuilder` functions (i.e., `AnonymousPathBuilder::pick_exit()` instead of `self.pick_exit()`, `AnonymousPathBuilder::compatible_with()` instead of `self.compatible_with`, etc.).
* Merge branch 'encapsulate_config_rs' into 'main'Nick Mathewson2024-03-1317-106/+159
|\ | | | | | | | | Encapsulate usage of config-rs inside tor-config. See merge request tpo/core/arti!2040
| * Grammar fix.gabi-2502024-03-131-1/+1
| |
| * Remove now-needless dependencies on the "config" crateNick Mathewson2024-03-134-6/+3
| | | | | | | | | | arti and arti-testing no longer need it; tor-config no longer needs it in dev-dependencies.
| * tor-config: Update documentation to not refer to config crate.Nick Mathewson2024-03-134-11/+12
| |
| * config: Remove From impls from config::ConfigErrorNick Mathewson2024-03-134-18/+18
| | | | | | | | These are another case of exposing the config crate.
| * tor-config: Put config::Config inside a wrapper type.Nick Mathewson2024-03-137-24/+35
| | | | | | | | This will let us replace Config with something better.
| * Use ConfigurationSource::Verbatim in our tests.Nick Mathewson2024-03-133-23/+41
| |
| * tor-config: Allow ConfigurationSource to be verbatim text.Nick Mathewson2024-03-134-14/+32
| | | | | | | | | | This will let us test our configuration logic without having to use the `config` crate directly.
| * tor_config: Hide macro-only re-exports.Nick Mathewson2024-03-134-13/+18
| | | | | | | | | | Our macros use these exports, but we don't need everybody else to be able to see them.
| * ptmgr: Use Itertools directly.Nick Mathewson2024-03-133-1/+3
| | | | | | | | Previously it used tor_config::Itertools, which is silly.
| * ptmgr: reformat Cargo.tomlNick Mathewson2024-03-131-1/+2
| |
* | Merge branch 'mixed_attributes_syntax' into 'main'gabi-2502024-03-13237-1/+244
|\ \ | |/ |/| | | | | maint/add_warning: permit clippy::mixed_attributes_style in tests. See merge request tpo/core/arti!2042
| * Add unknown-lints exception to examplesNick Mathewson2024-03-137-1/+7
| | | | | | | | | | We need this to avoid warnings when runnning non-nightly clippy on these examples.
| * Run maint/add_warning.Nick Mathewson2024-03-13236-0/+236
| |
| * maint/add_warning: permit clippy::mixed_attributes_style in tests.Nick Mathewson2024-03-131-0/+1
|/ | | | | | This is a new warning on nightly. It triggers for every one of our test blocks that starts with `#[cfg(test)]` and then goes on to have an `#![allow(...)]` block at the start of the module.
* Merge branch 'prop340-decoding-api' into 'main'Nick Mathewson2024-03-1315-94/+365
|\ | | | | | | | | relay_cell: Update decoding API to support prop340 format See merge request tpo/core/arti!2034
| * Remove RelayMsgOuter::decode_from_readerJim Newsome2024-03-121-11/+3
| | | | | | | | | | | | The semantics of such a function that supports both the legacy V0 format and the V1 packing and fragmentation format are a bit tricky. Since it's not used outside of its module, we can simply remove it.
| * relay-cell: Update relay cell decoding API for prop340Jim Newsome2024-03-129-56/+338
| | | | | | | | | | | | | | | | | | | | | | Prop 340: https://spec.torproject.org/proposals/340-packed-and-fragmented.html This updates the decoding API to support multiple versions of the relay cell encoding, including the new encoding proposed in prop340 that supports relay message packing and fragmentation. This commit doesn't actually add support for that new encoding yet.
| * Rename UnparsedRelayCell -> UnparsedRelayMsgJim Newsome2024-03-1212-48/+45
| | | | | | | | | | For consistency with the terminology proposed in https://gitlab.torproject.org/tpo/core/torspec/-/issues/253
* | Merge branch 'fix_rustdoc_links' into 'main'Alexander Færøy2024-03-127-13/+14
|\ \ | |/ |/| | | | | Fix some rustdoc warnings. See merge request tpo/core/arti!2037
| * Fix some rustdoc warnings.Nick Mathewson2024-03-127-13/+14
|/ | | | | These are mostly about explicitly linking to things that were already in scope.
* Merge branch 'tor_relay_selection' into 'main'Nick Mathewson2024-03-1225-383/+2126
|\ | | | | | | | | | | | | New tor-relay-selection crate to encapsulate relay selection choices. Closes #789 See merge request tpo/core/arti!2002
| * tor-relay-selection: Use partition() in testing code.Nick Mathewson2024-03-121-9/+3
| |
| * Rename and clarify result_is_relaxed.Nick Mathewson2024-03-121-5/+5
| |
| * Refactor RelaySelector to make its invariants less subtle.Nick Mathewson2024-03-121-48/+61
| |
| * Add a comment about future extensions to RestrictionInner.Nick Mathewson2024-03-121-0/+6
| |
| * tor-relay-selector: Clarify "flexible" vs "relaxed" a little.Nick Mathewson2024-03-122-3/+4
| |
| * Annotate usage of low_level_predicate_permits_relayNick Mathewson2024-03-122-1/+15
| |
| * relay-selection: Remove the extension traits for Relay and NetDirNick Mathewson2024-03-122-64/+0
| | | | | | | | | | | | I thought we would need these, but after the latest refactoring they turned out not to have any users, and one of them had only deprecated methods. Best just to drop them.
| * Rename the RelayPredicate trait to discourage its being used directly.Nick Mathewson2024-03-127-30/+48
| | | | | | | | Everybody who can, should instead use a RelaySelector.
| * Add comments about "unaccompanied" use of Relay{Usage,Exclusion}Nick Mathewson2024-03-122-0/+4
| | | | | | | | | | | | When used outside of RelaySelector, these two types don't enforce one another's presence, and as such have a bit more risk of negligent use.
| * Annotate remaining "TODO #504" comments explaining why they are there.Nick Mathewson2024-03-121-4/+14
| |
| * hspool: Replace TargetInfo with a RelayExclusion.Nick Mathewson2024-03-121-53/+17
| |
| * guardmgr: explain remaining work for #504 issues.Nick Mathewson2024-03-121-2/+4
| |
| * guardmgr: refactor most logic for relay selectionNick Mathewson2024-03-124-30/+58
| |
| * ipt_mgr: convert to use RelaySelector.Nick Mathewson2024-03-123-11/+23
| |
| * circmgr: Rename "any exit" code to reflect its real purposeNick Mathewson2024-03-122-8/+11
| | | | | | | | | | (These functionalities are for onion service circuits, and don't actually need to go to an exit at all.)
| * circmgr: Remove now-obsolete error variants.Nick Mathewson2024-03-122-48/+5
| |
| * circmgr: Begin porting path selection to tor-relay-selectionNick Mathewson2024-03-125-191/+160
| | | | | | | | | | This covers the easy cases, where we are selecting relays at random based on a selector.
| * New crate to define a high-level API for relay selectionNick Mathewson2024-03-1212-46/+1691
| |
| * Create a new empty tor-relay-selection crate.Nick Mathewson2024-03-125-0/+100
| |
| * netdir: Add additional functionality to SubnetConfigNick Mathewson2024-03-121-1/+62
| | | | | | | | We'll need this to implement restrictions more reasonably.
| * Add a clear_flags function to RouterStatusBuilderNick Mathewson2024-03-121-0/+6
|/ | | | (For testing.)
* Merge branch 'arti_client_test' into 'main'gabi-2502024-03-111-1/+12
|\ | | | | | | | | arti-client: increase coverage in src/address.rs See merge request tpo/core/arti!2029
| * arti-client: increase coverage in src/address.rsBrady Fomegne2024-03-051-1/+12
| | | | | | | | | | | | - added test for TorAddr::enforce_config with invalid/onion hostname - added test for display Host::Onion - added test for any type &T who implement IntoTorAddr trait
* | Merge branch 'vanguard-mgr' into 'main'gabi-2502024-03-1123-8/+581
|\ \ | | | | | | | | | | | | | | | | | | tor-guardmgr: Add vanguards API skeleton. Closes #1277 See merge request tpo/core/arti!2035
| * | tor-circmgr: Fix clippy warning.Gabriela Moldovan2024-03-111-1/+1
| | |