summaryrefslogtreecommitdiff
path: root/crates/tor-relay-selection/src
Commit message (Collapse)AuthorAgeFilesLines
* Re-run maint/add_warning.Nick Mathewson2024-05-061-2/+2
| | | | This commit is automatically generated.
* tor-relay-selection: Introduce RelayUsage::vanguard.Gabriela Moldovan2024-04-221-0/+22
| | | | | | | | | | | This adds a new `RelayUsage` for vanguards. As per the original [vanguards implementation], vanguards must: * have the Fast, Stable, and Valid flags * be selected using the `Middle` weight Part of #1364 [vanguards implementation]: https://github.com/mikeperry-tor/vanguards
* Rename `Relay::same_relay` and make it private.Nick Mathewson2024-03-281-1/+1
| | | | | Everybody outside of tor-netdir should use HasRelayIds::same_relay_ids, whose intent is clearer.
* Remove all *Relay is_flagged_guard methods.Nick Mathewson2024-03-281-1/+4
| | | | These were only used for testing.
* Remove temporary functions in CheckedRelay.Nick Mathewson2024-03-283-15/+37
|
* Run maint/add_warning.Nick Mathewson2024-03-134-0/+4
|
* Fix some rustdoc warnings.Nick Mathewson2024-03-121-1/+1
| | | | | These are mostly about explicitly linking to things that were already in scope.
* 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-121-1/+2
|
* 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-125-26/+42
| | | | Everybody who can, should instead use a RelaySelector.
* New crate to define a high-level API for relay selectionNick Mathewson2024-03-127-0/+1649
|
* Create a new empty tor-relay-selection crate.Nick Mathewson2024-03-121-0/+42