aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-dirserver/src/mirror.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-dirserver: Support DirBackendPlugin kludgeClara Engler2026-08-121-0/+40
| | | | | | | | This commit adds support for the directory backend plugin kludge by adding a new wrapper struct called `DirMirrorWithBackend`. It also moves http-body-util from a development dependency to a real dependency, as this makes working with hyper a lot more comfortable.
* tor-dirserver: Remove unused_async lintClara Engler2026-08-121-1/+0
| | | | No longer required.
* dirserver: Add a TODO about reworking the DirMirror listener typeGabriela Moldovan2026-07-221-0/+7
|
* dirserver: Return a dummy response from DirMirror::serve()Gabriela Moldovan2026-07-221-2/+28
| | | | | | | | | | | This makes the `DirMirror` return a dummy 500 response. This enables us to (manually) verify that the new relay BEGIN_DIR stream handler works as expected. We will of course need some automated e2e tests too, but for the time being a manual test should do. This will all be replaced by the real implementation, once that's ready (TODO DIRMIRROR).
* Fix typosTobias Stoeckmann2026-03-241-2/+2
| | | | Typos found with codespell
* dirserver: Allow clippy::unused_asyncGabriela Moldovan2026-01-271-0/+1
| | | | This code is still WIP, no need to address the lint yet.
* tor-dirserver: Implement download timeoutClara Engler2025-10-301-0/+2
| | | | | | | | | | This commit starts work in the `mirror::operation` module by implementing the functions for calculating the `Duration` to wait from a given `SystemTime` until the point in time when the dirmirror should download new documents from the authorities again. Also, this commit introduces new error types and internal helper functions in order to fulfill this purpose better.
* tor-dirserver: Outline the `mirror` APIClara Engler2025-10-301-1/+149
| | | | | | This commit introduces the `mirror` module which is fairly boilerplate at the moment. However, everything of it is very well documented using rustdoc, thereby more or less creating a design document.
* tor-dirserver: Some clippy fixesClara Engler2025-10-151-0/+1
|
* tor-dirserver: Get rid of the poor buildersClara Engler2025-10-151-43/+1
|
* tor-dirserver: Add clippy checks and fix themClara Engler2025-09-041-0/+1
|
* tor-dirserver: Initial commitClara Engler2025-09-041-0/+46
This commit lays the initial groundwork for the `tor-dirserver` crate, a crate that shall implement functionality for dirmirros and dirauths. For now, the current crate consists of three bare bone modules: * lib.rs * err.rs * mirror.rs All of which contain mostly boilerplate code for now