aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-dircommon/src/authority.rs
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* dircommon: Port to use derive_deftly(TorConfig)Nick Mathewson2026-02-171-13/+18
| | | | | Some of the behaviors of the existing types here are nonstandard; I've kept them and documented them, to avoid breaking compatibility.
* tor-dircommon: Remove legacy authority syntaxClara Engler2026-01-221-13/+0
| | | | | | Because arti 2.0 is pending, it is good to get rid of technical debt, such as the legacy syntax for specifying directory authorities, which had been replaced by prop330 a few months ago.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* tor-dircommon: Add prop330 unit testsClara Engler2025-09-161-0/+43
|
* tor-dircommon: Backwards compatibility for authsClara Engler2025-09-161-0/+13
|
* tor-dircommon: Implement proposal 330Clara Engler2025-09-161-187/+100
| | | | | | | This commit implements proposal 330 in the context of `tor-dircommon`, by replacing the single `Authority` structure used in a list context by a single structure called `AuthorityContacts` which contains all v3idents, upload, download, and vote endpoints in one central place.
* tor-dircommon: Add dirports field to authorityClara Engler2025-09-021-16/+91
|
* tor-dircommon: Initial commitClara Engler2025-09-021-0/+145
This commit initializes the `tor-dircommon` crate: A crate serving the purpose to form an umbrella for the lowest common denominator primitives found across crates implementing (parts of) the directory specification. For now, the only such primitive is the found within the `authority` module, which has been refactored from `tor-dirmgr` into this crate, alongside additional getter functions due to the lack of `pub(crate)` in this context. In the future, we may move further primitives away from `tor-dirmgr` into `tor-dircommon`.