summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | fix existing teststrinity-1686a2022-03-162-68/+62
| | | | |
| * | | | add a join() on Isolationtrinity-1686a2022-03-161-4/+65
| | | | |
| * | | | testing new api for isolationTrinity Pointard2022-03-163-45/+124
| | | | |
* | | | | Merge branch 'config-partials-transparent' into 'main'Ian Jackson2022-03-1711-153/+199
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Absolish builders for CircMgrConfig and DirMgrConfig See merge request tpo/core/arti!417
| * | | | | DirMgrConfig: abolish builder; make it transparent and exhaustiveIan Jackson2022-03-165-82/+61
| | | | | | | | | | | | | | | | | | | | | | | | See rationale in the comment.
| * | | | | Add rationale for CircMgrConfig transparency and traitIan Jackson2022-03-161-1/+22
| | | | | |
| * | | | | Provide define_accessor_trait and use it to generate CircMgrConfigIan Jackson2022-03-163-20/+81
| | | | | |
| * | | | | Make CircMgrConfig transparent (and make it a trait)Ian Jackson2022-03-164-68/+47
| | | | | | | | | | | | | | | | | | | | | | | | See commentary for the rationale.
| * | | | | Change type of TorClientConfig::override_net_paramsIan Jackson2022-03-163-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we use NetParams. That implies making its constructor public, which I think it fine. This is related to #413 but is far from completing that ticket.
| * | | | | Actually honour preemptive circuits configurationIan Jackson2022-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This handwritten conversion function omitted a field. There was nothing to spot this mistake. IMO this shows why these particular types ought not to use builders, but instead, should cause API breaks when things change. Adding this line here to explicitly fix the bug, although we are about to abolish this function completely almost right away.
* | | | | | Merge branch 'always-ims' into 'main'eta2022-03-161-10/+49
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dirmgr: Always send if-modified-since on consensus documents. Closes #403 See merge request tpo/core/arti!412
| * | | | | | dirmgr: Always send if-modified-since on consensus documents.Nick Mathewson2022-03-161-10/+49
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never want a consensus document that's super-old, since we would reject it immediately for being too old. Also, never send an if-modified-since that's so old that we'd reject the response. Closes #403
* | | | | | Fix typoDimitris Apostolou2022-03-161-1/+1
| |_|/ / / |/| | | |
* | | | | Merge branch 'derive-builder' into 'main'Ian Jackson2022-03-169-14/+14
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | derive_builder: Switch to upstream 0.11 See merge request tpo/core/arti!414
| * | | | derive_builder: Switch to upstream 0.11Ian Jackson2022-03-169-14/+14
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the different syntax for builder field attributes than what I originally proposed in my MR, and which therefore is in the pinned branch. My upstream MR for the field attributes feature was morged: https://github.com/colin-kiegel/rust-derive-builder/issues/239
* | | | Merge branch 'move-retry-delay' into 'main'Ian Jackson2022-03-164-153/+178
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Move RetryDelay into tor-basic-utils See merge request tpo/core/arti!411
| * | | | RetryDelay: remove accessors.Nick Mathewson2022-03-162-24/+10
| | | | | | | | | | | | | | | | | | | | Instead, check initial_delay in dirmgr directly.
| * | | | Remove re-export of retry-schedule in tor-dirmgr.Nick Mathewson2022-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | It wasn't necessary.
| * | | | Fix up documentation on RetryDelay.Nick Mathewson2022-03-162-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | It's no longer about downloads; it's about whatever you need to retry.
| * | | | Move RetryDelay from dirmgr to basic-utils.Nick Mathewson2022-03-164-155/+170
| | | | | | | | | | | | | | | | | | | | | | | | | This (almost) a pure code-movement commit: it also makes one public function private in order to suppress a warning.
| * | | | RetryDelay: add accessors for stateNick Mathewson2022-03-161-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | We'll need these for our unit tests in tor-dirmgr once we move RetryDelay into tor-basic-utils.
| * | | | tor-basic-utils/Cargo.toml: reformat.Nick Mathewson2022-03-161-1/+2
| | |/ / | |/| | | | | | | | | | | | | | This is a separate commit to avoid putting format changes in the next commit.
* | | | Replace a match with some as_ref and asIan Jackson2022-03-161-4/+1
| |/ / |/| | | | | | | | | | | | | | | | | The match was doing a deref coercion. Found by current nightly's needless_match (whose suggestion doesn't compile, https://github.com/rust-lang/rust-clippy/issues/8551 )
* | | make run_dns_resolver public and fix typotrinity-1686a2022-03-151-3/+2
|/ /
* | add simple unit test on UDPtrinity-1686a2022-03-144-2/+47
| |
* | fix typos and minor issuestrinity-1686a2022-03-143-16/+24
| |
* | actually add DNS supporttrinity-1686a2022-03-144-5/+89
| |
* | add skeleton for DNS handlingtrinity-1686a2022-03-145-14/+99
| |
* | add udp to runtimetrinity-1686a2022-03-1416-37/+314
| |
* | Merge branch 'main' into 'intern-more'Nick Mathewson2022-03-1412-95/+39
|\ \ | | | | | | | | | # Conflicts: # doc/semver_status.md
| * \ Merge branch 'missing_shrink_to_fit' into 'main'eta2022-03-141-0/+7
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | dirmgr: Call shrink_to_fit on missing-microdesc hashtable Closes #388 See merge request tpo/core/arti!399
| | * | dirmgr: Call shrink_to_fit on missing-microdesc hashtableNick Mathewson2022-03-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This hashtable starts out pretty large, but it can spend most of our runtime (when we aren't downloading) being small. To avoid doing too much work, I've made it so we only call shrink_to_fit twice per consensus: once when we're no longer pending, and once when we're complete. Closes #388.
| * | | Merge branch 'slice-from-ref' into 'main'eta2022-03-142-49/+21
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Simpify tor-netdoc TokVal See merge request tpo/core/arti!404
| | * | | tor-netdoc: Actually, make TokVal be a VecIan Jackson2022-03-112-46/+21
| | | | | | | | | | | | | | | | | | | | | | | | | This enum was otiose: its set of valid values is precisely those of a Vec. (Indeed what would TokVal::Multi(vec![]) have meant?)
| | * | | Remove a pointless sliceIan Jackson2022-03-111-10/+7
| | | | | | | | | | | | | | | | | | | | std::slice::from_ref exists. Spotted while reviewing !400
| * | | | Revert "humantime_serde_option: New module in tor-basic-utils"Ian Jackson2022-03-143-33/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have upstreamed this code. This reverts commit 6193c9d9742d1d19a45a0ee1c383858201304912.
| * | | | Use new upstream humantime_serde_option featureIan Jackson2022-03-142-9/+7
| | | | | | | | | | | | | | | | | | | | Replace all uses of our copy of this code.
| * | | | humantime: Update to humantime-serde 1.1.1Ian Jackson2022-03-144-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the humantime_serde::option module, which we have upstreamed and are about to switch to. The remaining dependency with version = "1" is going to be removed in a moment.
* | | | | Canonicalize and intern protover lines on descriptorsNick Mathewson2022-03-115-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should save around 1MB per consensus, since every relay has a 'protocols' lines, but there are only a few distinct possibilities for such a line. Closes #385.
* | | | | Canonicalize and intern family representations to save memory.Nick Mathewson2022-03-114-9/+57
|/ / / / | | | | | | | | | | | | | | | | | | | | This should save 1-3 MB of ram on each running arti client. Closes #384. See also tor#27359 and proposal 298.
* | | | Merge branch 'arti-lib' into 'main'Ian Jackson2022-03-117-268/+325
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti: Move all code from binary crate to library crate See merge request tpo/core/arti!403
| * | | | arti library crate: Add another note about panickingIan Jackson2022-03-111-0/+4
| | | | |
| * | | | arti library crate: re-add clippy lintsIan Jackson2022-03-111-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I ought to have c&p these. As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/403#note_2786099
| * | | | arti library crate: Add note about panickingIan Jackson2022-03-111-0/+4
| | | | |
| * | | | arti: Make main module entrypoints pubIan Jackson2022-03-116-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | This does not constitute any kind of stable API promise. But it might allow people to use our arti client code in novel ways.
| * | | | arti: Provide some rubric docs.Ian Jackson2022-03-111-0/+8
| | | | |
| * | | | arti: Move all code from binary crate to library crateIan Jackson2022-03-112-261/+269
| | | | | | | | | | | | | | | | | | | | This is just code motion and the minimal fixups.
* | | | | Merge branch 'smaller_routerstatus' into 'main'Nick Mathewson2022-03-116-32/+91
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | tor-netdoc: Save allocation space in GenericRouterstatus Closes #387 See merge request tpo/core/arti!400
| * | | | Add a more generic implementation of intern-by-refNick Mathewson2022-03-112-4/+12
| | | | |
| * | | | netdoc: Call shrink_to_fit() when we're done parsing rs sectionsNick Mathewson2022-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | (Once we're done parsing these, the vector will never get any longer.)