summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * arti-relay: add `StorageConfig::cache_dir()` helperSteven Engler2025-12-171-1/+12
| |
* | tor-netdoc: parse_netdoc_multiple_with_offsets: Add comment about offsetsIan Jackson2025-12-181-0/+5
| | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3554#note_3313768
* | tor-netdoc: test2: Make t_ok (which takes no boundaries) take &D not &[D]Ian Jackson2025-12-181-16/+16
| |
* | tor-netdoc: test2: Test parse_netdoc_multiple_with_offsetsIan Jackson2025-12-181-2/+25
| | | | | | | | | | | | * Make a fancy version of t_ok, t_ok_multi, that takes the expected boundary byte offsets. * t_ok is now just for single-document files and is implemented in terms of t_ok_multi. * Use t_ok_multi for the one test case with multiple documents.
* | tor-netdoc: test2: Add a test file with more than one documentIan Jackson2025-12-181-0/+17
| |
* | tor-netdoc: Provide parse2::parse_netdoc_multiple_with_offsetsIan Jackson2025-12-182-0/+22
| |
* | tor-netdoc: Break out and expose ItemStream::byte_positionIan Jackson2025-12-182-3/+11
| |
* | tor-netdoc: Fix doc comment for parse_netdoc_multipleIan Jackson2025-12-181-1/+1
| |
* | Merge branch 'p2-preamble-1' into 'main'Ian Jackson2025-12-187-12/+127
|\ \ | | | | | | | | | | | | Some work on parsing the network status preamble See merge request tpo/core/arti!3550
| * | tor-netdoc: netstatus preamble: Reorder fields to match spec orderIan Jackson2025-12-181-21/+21
| | | | | | | | | | | | | | | As suggested here https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3550#note_3313757
| * | tor-netdoc: netstatus preamble: Add a lot of blank linesIan Jackson2025-12-181-0/+11
| | | | | | | | | | | | | | | I'm going to reorder things and this will make that much less error-prone, at least for me.
| * | tor-netdoc: netstatus preamble: Clarify TODO for known-flagsIan Jackson2025-12-181-1/+1
| | |
| * | tor-netdoc: netstatus: improve TODO commentsIan Jackson2025-12-181-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | This is the result of reading through the spec and comparing it to the struct. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3550#note_3312672
| * | tor-netdoc: Clarify the wrong field bug exampleIan Jackson2025-12-181-1/+4
| | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3550#note_3312670
| * | tor-netdoc: Fix typo in commentIan Jackson2025-12-181-1/+1
| | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3550#note_3312669
| * | tor-netdoc: rustfmtIan Jackson2025-12-181-2/+1
| | |
| * | tor-netdoc: Preamble: Parse published in votesIan Jackson2025-12-183-0/+5
| | |
| * | tor-netdoc: Preamble: Parse consensus-methods in votesIan Jackson2025-12-184-1/+5
| | |
| * | tor-netdoc: Preamble: Fix consensus-method parsing in votesIan Jackson2025-12-181-1/+1
| | |
| * | tor-netdoc: impl NetdocParseableFields for PreambleIan Jackson2025-12-181-0/+12
| | |
| * | tor-netdoc: impl ItemValueParseable for NetParams<i32>Ian Jackson2025-12-181-1/+11
| | |
| * | tor-netdoc: impl NetdocParseableFields for ProtoStatusesIan Jackson2025-12-181-1/+63
| | |
| * | tor-netdoc: Use $P for prelude in one placeIan Jackson2025-12-182-2/+2
| |/ | | | | | | This was missed, apparently.
* | Merge branch 'feat/retry-error-timestamps' into 'main'Ian Jackson2025-12-179-47/+399
|\ \ | | | | | | | | | | | | | | | | | | retry-error timestamps Closes #2269 See merge request tpo/core/arti!3506
| * | fix(download): Use push_timed with mockable time sourcesNihal2025-12-171-2/+2
| | |
| * | chore: remove debug comments, use let-elseNihal2025-12-171-18/+9
| | |
| * | fix: preserve Attempt variant directlyNihal2025-12-171-26/+33
| | |
| * | fix: preserve Attempt::Range when extendingNihal2025-12-171-5/+60
| | |
| * | fix: preserve timestamps when flattening RetryErrorsNihal2025-12-172-7/+48
| | |
| * | chore: remove unncesarry fileNihal2025-12-171-56/+0
| | |
| * | fix: use wallclock timestamps in all push_timed callsNihal2025-12-175-26/+94
| | |
| * | fix: semver labels and extend() with push_timed loopNihal2025-12-172-5/+8
| | |
| * | refactor: convert Extend to inherent method, forbid push/extend, fix ↵Nihal2025-12-175-16/+50
| | | | | | | | | | | | rend_handshake time
| * | refactor: remove early returns and forbid push() via clippyNihal2025-12-171-5/+6
| | |
| * | refactor: clean codeNihal2025-12-175-105/+144
| | |
| * | feat(retry-error): add timestamps to retry errorsNihal2025-12-176-52/+221
| |/
* / rpc-connect-point: Decline (not abort) on more invalid address formats.Nick Mathewson2025-12-172-4/+26
|/ | | | | | | | | | When we see an address schema we don't recognize, we're supposed to _decline_ the connect point rather than aborting. Closes #2303. See discussion at #1844. Additionally, we tolerate more kinds of invalid address, in order to permit future planned extensions.
* Merge branch 'listen_on_auto' into 'main'Nick Mathewson2025-12-169-75/+486
|\ | | | | | | | | | | | | Allow listening on port "auto", and reporting bound ports via a JSON file Closes #1758 See merge request tpo/core/arti!3548
| * Improve socks_listen/dns_listen documentation.Nick Mathewson2025-12-161-3/+8
| |
| * arti: Move "port_info_file" configuration into "storage"Nick Mathewson2025-12-163-12/+34
| | | | | | | | | | | | This was a little funny, since the other storage elements are declared in tor-client. Fortunately, our stacked configuration logic handles this fine.
| * arti: tweak port_info documentation.Nick Mathewson2025-12-161-0/+3
| |
| * arti: Export the chosen ports in a ports_info.json file.Nick Mathewson2025-12-168-24/+267
| | | | | | | | | | This allows applications to find out where arti is listening when arti has been configured to listen with the port "auto".
| * arti: Change how proxy futures are returned.Nick Mathewson2025-12-163-26/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the proxy and dns modules only had "be a proxy" functions that ran forever. Now they have functions that bind to listeners and return a separate "be a proxy" future that runs forever. This lets us simplify some kludges in subcommands::proxy. More importantly, it will let us return the bound-to ports so that subcommands::proxy can write them to disk. This is a break in experimental-apis, which does not require a semver change.
| * tor_config::listen: Warn on explicit port zero.Nick Mathewson2025-12-161-2/+17
| |
| * arti: tweak docs, add TODOs with respect to Listener.Nick Mathewson2025-12-163-1/+6
| |
| * arti: Log the actual addresses we are listening on.Nick Mathewson2025-12-162-4/+10
| |
| * tor_config::Listen: Add methods to check for auto and port 0.Nick Mathewson2025-12-161-0/+37
| |
| * tor_config::Listen: Add "auto" itemsNick Mathewson2025-12-161-7/+55
| | | | | | | | These are a nicer syntax than using port "0" explicitly.
| * tor_config::Listen: Deprecate localhost_port_legacy.Nick Mathewson2025-12-161-1/+5
| | | | | | | | Nothing actually uses it any more, which is good.
| * tor_config::Listen: Refactor legacy methods.Nick Mathewson2025-12-161-22/+26
| | | | | | | | | | Have the part of them that does the "no multiple addresses" work be common, so that we can simplify how they actually behave.