summaryrefslogtreecommitdiff
path: root/crates/tor-dirpublish/src
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+2
| | | | | | | | | | | | 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.
* tor-rtcompat+misc: add `NetStreamProvider::ConnectOptions`Steven Engler2026-06-081-4/+9
| | | | | | | | | This adds the trait type `ConnectOptions` to `NetStreamProvider` and adds this `ConnectOptions` as an argument to `NetStreamProvider::connect()`. You probably want to look at the changes in tor-rtcompat first, then the rest of this commit is updating the various places we use `NetStreamProvider`.
* dirpublish: Extract the larger part of the select_biased body.Nick Mathewson2026-05-121-60/+87
|
* dirpublish: Turn TaskResult into a struct.Nick Mathewson2026-05-121-19/+22
|
* dirpublish: import span and Level for clarity.Nick Mathewson2026-05-121-2/+2
|
* dirpublish: Rename and clarify "permanent failure" error.Nick Mathewson2026-05-122-8/+8
|
* grammar fix from @gabi-250Nick Mathewson2026-05-121-1/+1
|
* New `tor-dirpublish` crate to handle uploading documents.Nick Mathewson2026-05-124-0/+1733
This crate is a generalization of the logic for uploading we currently have in tor-hsservice to handle uploading a (possibly changing) document to a (possibly changing) list of targets. It supports different kinds of documents, different kinds of document targets, and different ways to upload. Currently only direct HTTP uploads are supported; we can add others in the future (and we'll have to, for bridges and onion services.) Closes #2499.