aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr
Commit message (Collapse)AuthorAgeFilesLines
...
* Migrate tor-dirmgr from chrono to time 0.3Nick Mathewson2021-10-243-36/+40
| | | | | (This appears to be the emerging consensus of how to handle RUSTSEC-2020-0159.)
* Replace references to arti-client in the documentation.Nick Mathewson2021-10-211-2/+2
|
* Remove #![allow(unreachable_pub)] in shared_ref.rsNick Mathewson2021-10-211-7/+5
|
* Merge branch 'share_state'Nick Mathewson2021-10-213-53/+84
|\
| * Mark consensus as "not-pending" even if its microdescs come from cache.Nick Mathewson2021-10-203-8/+48
| | | | | | | | | | | | | | Previously our code would clear the 'pending' flag on a consensus only when a _downloaded_ md made it become usable. Closes #199.
| * Move tor-dirmgr to use a sync::Mutex.Nick Mathewson2021-10-203-45/+36
| | | | | | | | | | The futures::lock::Mutex was unnecessary, since we never held it when we were suspending.
* | fallbackdir: Regenerate list for October 2021David Goulet2021-10-211-881/+870
| | | | | | | | | | | | Closes #200 Signed-off-by: David Goulet <[email protected]>
* | Fix most warnings from nightly.Nick Mathewson2021-10-193-3/+9
|/ | | | (One represents code that I forgot to write.)
* Fix some typos in comments.Nick Mathewson2021-10-191-1/+1
| | | | Also, tell the "typos" tool to ignore Cargo.lock.
* Reverse two swapped log messagesNick Mathewson2021-10-191-2/+2
|
* Improve logging when trying to get the lock on the directory cache.Nick Mathewson2021-10-191-3/+20
| | | | | | Previously we'd say that we were "waiting for the other process to bootstrap" even if it was already bootstrapped: and we wouldn't actually declare success when it was done.
* Remove useless into() conversions caught by clippy.Jani Monoses2021-10-185-28/+30
|
* Remove anyhow dependency from tor-dirmgr.Jani Monoses2021-10-184-13/+62
|
* 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.
* Turn off default-features in chrono where possible.Nick Mathewson2021-10-171-1/+1
|
* Add a few tracing directives to tor-dirmgr.Nick Mathewson2021-10-133-3/+14
|
* tor-dirmgr: report bootstrap success on all successful cases.Nick Mathewson2021-10-131-0/+5
| | | | | Previously we would sometimes fail to report that we had successfully bootstrapped.
* Don't report the bootstrap as completed unless it actually succeeds.Nick Mathewson2021-10-132-5/+14
| | | | | (Previously we'd report it as successful even if the inner download task was a failure.)
* Notify guard manager on network change and state flush.Nick Mathewson2021-10-103-0/+26
|
* Lock down some dirmgr config functions.Nick Mathewson2021-10-091-11/+11
|
* Re-export configuration types from tor-client.Nick Mathewson2021-10-092-1/+7
|
* enable checked_conversions lint.Nick Mathewson2021-10-091-0/+1
|
* Fix a type inference complaint in tor-dirmgr's tests.Nick Mathewson2021-10-071-1/+1
| | | | I have no idea why this just turned up now.
* Update cargo.lock; upgrade to newer rusqlite.Nick Mathewson2021-10-051-1/+1
|
* update fslock to compile androidTrinity Pointard2021-09-251-1/+1
|
* Upgrade memmap2, directories, and dirs dependencies.Nick Mathewson2021-09-231-1/+1
|
* remove unused depDaniel Eades2021-09-191-1/+0
|
* Do not use set_ prefix on derive_builder settersJani Monoses2021-09-161-3/+3
|
* Use derive_builder for Authority and FallbackDir.Nick Mathewson2021-09-102-72/+4
|
* Typo fixesNick Mathewson2021-09-091-2/+2
|
* 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-082-97/+38
|
* fix/silence clippy lints in test modulesDaniel Eades2021-09-085-6/+11
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-2716-0/+6570
This will cause some pain for now, but now is really the best time to do this kind of thing.