aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr/src/config.rs
Commit message (Collapse)AuthorAgeFilesLines
* dirmgr: add Store traittharvik2022-02-231-8/+8
|
* Make much of DirMgrConfig reconfigurable.Nick Mathewson2021-12-071-12/+54
| | | | | | | | | | We can't change the authorities while in-flight: that would be pretty miserable to implement. Similarly we can't change the cache while in-flight. Everything else should be fair game, though there are a couple of tricky bits. I've tried to document those.
* Sketch API for reconfiguration.Nick Mathewson2021-12-071-0/+5
| | | | | | | This patch doesn't actually make anything reconfigurable, but it does create an API that will tell you "you can't change the value of that!" If the API looks reasonable, I can start making it possible to change the values of individual items.
* More typo fixes that I forgot to save :(Nick Mathewson2021-11-241-1/+1
|
* Make every Config type implement Eq.Nick Mathewson2021-11-211-3/+3
| | | | | Doing this is necessary for reconfiguration support, and will help a lot with testing, too.
* Give every ConfigBuilder a From<Config> implementation.Nick Mathewson2021-11-211-6/+25
| | | | This will make it more convenient to reconfigure things.
* Use named fields for the elements of ConfigBuildErrorNick Mathewson2021-11-181-4/+4
|
* Rename RetryConfig to DownloadSchedule, fold in parallelism.Nick Mathewson2021-11-181-34/+23
|
* Move top-level configuration downwards from `arti` to `arti-config`.Nick Mathewson2021-11-181-5/+9
| | | | | | | | To do this at all neatly, I had to split out `tor-config` from `arti-config` again, and putting the lower level stuff (paths, builder errors) into tor-config. I also changed our use of derive_builder to always use a common error type, to avoid error type proliferation.
* Try writing a bit more documentation for configuration types.Nick Mathewson2021-10-281-2/+13
|
* Replace references to arti-client in the documentation.Nick Mathewson2021-10-211-2/+2
|
* Use unwrap in tests.Jani Monoses2021-10-181-9/+15
| | | | | | | | | For now, this avoids having to separately handle AuthorityBuilderError, DirMgrConfigBuilderError, DownloadScheduleConfigBuilderError, NetworkConfigBuilderError and FallbackDirBuilderError when anyhow is not used. Turn off a clippy warning.
* Lock down some dirmgr config functions.Nick Mathewson2021-10-091-11/+11
|
* Re-export configuration types from tor-client.Nick Mathewson2021-10-091-0/+5
|
* Do not use set_ prefix on derive_builder settersJani Monoses2021-09-161-3/+3
|
* Use derive_builder for Authority and FallbackDir.Nick Mathewson2021-09-101-34/+0
|
* Use derive_builder for the rest of tor_dirmgr::configNick Mathewson2021-09-091-80/+21
|
* Use derive_builder for DownloadScheduleConfigNick Mathewson2021-09-081-66/+7
|
* Use derive_builder for NetworkConfig.Nick Mathewson2021-09-081-97/+37
|
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-0/+1
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+594
This will cause some pain for now, but now is really the best time to do this kind of thing.