summaryrefslogtreecommitdiff
path: root/crates/tor-dircommon/src/config.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-39/+20
| | | | | Some of the behaviors of the existing types here are nonstandard; I've kept them and documented them, to avoid breaking compatibility.
* tor-dircommon: De-duplicate example from AuthorityContactClara Engler2026-01-221-35/+0
|
* tor-dircommon: Fix clippy warningClara Engler2026-01-221-1/+1
|
* tor-dircommon: Remove legacy authority syntaxClara Engler2026-01-221-136/+16
| | | | | | 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.
* tor-dircommon: Document prop330 syntax betterClara Engler2026-01-221-0/+35
| | | | | This commit adds more documentation/examples for the prop330 syntax for specifying directory authorities.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* tor-dircommon: Add TODO to DirTolerance::DefaultClara Engler2025-10-301-0/+2
|
* tor-dircommon: Add prop330 unit testsClara Engler2025-09-161-0/+34
|
* tor-dircommon: Derive default authority contactsClara Engler2025-09-161-1/+1
|
* tor-dircommon: Backwards compatibility for authsClara Engler2025-09-161-5/+119
|
* tor-dircommon: Implement proposal 330Clara Engler2025-09-161-19/+14
| | | | | | | 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.
* Move `FallbackDir` into `tor-dircommon`Clara Engler2025-09-111-5/+3
|
* tor-dircommon: Replace amplify via getsetClara Engler2025-09-111-9/+11
| | | | See !3200
* tor-dircommon: Use amplify and getters for configClara Engler2025-09-091-18/+18
|
* tor-dircommon: Make config non_exhaustiveClara Engler2025-09-091-0/+3
|
* Move `DirTolerance` into `tor-dircommon`Clara Engler2025-09-091-0/+63
| | | | | This commit moves the `DirTolerance` structure from `tor-dirmgr` into `tor-dircommon`.
* Move `DownloadSchedule` into `tor-dircommon`Clara Engler2025-09-081-1/+103
| | | | | This commit moves the `DowenloadSchedule` related types from `tor-dirmgr` into `tor-dircommon`.
* Move `NetworkStatus` to `tor-dircommon`Clara Engler2025-09-081-0/+87
This commit moves `NetworkStatus` from `tor-dirmgr::config` to `tor-dircommon::config` in order to start the work on a common place for configuration options shared by both directory implementations.