summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'div_ceil' into 'main'Nick Mathewson2024-10-032-15/+2
|\ \ \ | | | | | | | | | | | | | | | | Use {u64,usize}::div_ceil See merge request tpo/core/arti!2473
| * | | Use {u64,usize}::div_ceilNick Mathewson2024-09-302-15/+2
| | | | | | | | | | | | | | | | | | | | Previously we had to avoid it, but now that our MSRV is above 1.73 we can use it with abandon.
* | | | CircMgr: Start writing tests.Wesley Aptekar-Cassels2024-10-0310-291/+426
| | | |
* | | | Merge branch 'rpc-rustdoc' into 'main'Nick Mathewson2024-10-038-23/+123
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Revise RPC documentation to be more informative. See merge request tpo/core/arti!2489
| * | | rpc: clarify documentation and fix typosNick Mathewson2024-10-023-4/+9
| | | | | | | | | | | | | | | | Based on review from @opara.
| * | | Revise RPC documentation to be more informative.Nick Mathewson2024-10-028-23/+118
| | | | | | | | | | | | | | | | | | | | | | | | Previous documentation was more-or-less meant for the Arti developer only. This new documentation is intended for actual users of RPC functionality. It's meant to be extracted with `maint/rpc-doc-tool`.
* | | | Merge branch 'docsrs-feature' into 'main'Ian Jackson2024-10-031-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | tor-socksproto: fix "check_doc_features" warning See merge request tpo/core/arti!2487
| * | | | tor-socksproto: fix "check_doc_features" warningSteven Engler2024-10-011-0/+4
| | | | |
* | | | | Merge branch 'mcost' into 'main'Ian Jackson2024-10-0227-80/+606
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Implement tor_memquota:HasMemory cost for a lot of types See merge request tpo/core/arti!2459
| * | | | | tor-memquota: Fix more hard tabs.Ian Jackson2024-10-021-2/+2
| | | | | |
| * | | | | tor-memquota: Explain choice of boundsIan Jackson2024-10-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086841
| * | | | | Revert "tor-cell: Use HasMemoryCostStructural, rather than Copy"Ian Jackson2024-10-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit def8810156f8c2bf8f18ef9ad75a61601f6fea78.
| * | | | | tor-memquota: Replace MemoryCostStructuralCopy with assert_copy_static (fmt)Ian Jackson2024-10-021-1/+1
| | | | | |
| * | | | | tor-memquota: Replace MemoryCostStructuralCopy with assert_copy_staticIan Jackson2024-10-022-23/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086841
| * | | | | tor-memquota: Move and reword a commentIan Jackson2024-10-021-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This comment is more applicable to the memory_cost_structural_copyx macro than the wrapper type, especially since the wrapper type is going away.
| * | | | | tor-memquota: Add an example for HasMemoryCost deriveIan Jackson2024-10-022-0/+40
| | | | | |
| * | | | | tor-cell: Use HasMemoryCostStructural, rather than CopyIan Jackson2024-10-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086839
| * | | | | Abolish SIZE in favour of std::mem::size_ofIan Jackson2024-10-022-22/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086837
| * | | | | tor-memquota: Provide explicit "indirect size" feature in deriveIan Jackson2024-10-021-0/+6
| | | | | |
| * | | | | Use std::num::NonZeroFooIan Jackson2024-10-021-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not the generic version which isn't supported in our MSRV. We may want to revert this in the future, so let's make it a separate commit.
| * | | | | Some HasMemoryCost impls in tor-protoIan Jackson2024-10-023-5/+13
| | | | | |
| * | | | | Some HasMemoryCost impls in tor-cellIan Jackson2024-10-029-65/+167
| | | | | |
| * | | | | Some HasMemoryCost impls in tor-linkspecIan Jackson2024-10-022-3/+10
| | | | | |
| * | | | | Some HasMemoryCost impls in tor-hscryptoIan Jackson2024-10-022-0/+12
| | | | | |
| * | | | | Some HasMemoryCost impls in tor-llcryptoIan Jackson2024-10-024-1/+19
| | | | | |
| * | | | | Some HasMemoryCost impls in tor-unitsIan Jackson2024-10-022-1/+8
| | | | | |
| * | | | | tor-memquota: Export Account at the toplevelIan Jackson2024-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out we're mostly going to want to deal in Accounts, not Arc<MemoryQuotaaTracker>s.
| * | | | | tor-memquota: Provide facilities for deriving HasMemoryCostIan Jackson2024-10-024-1/+344
| | | | | |
| * | | | | tor-memquota: Make EnabledToken constructors constIan Jackson2024-10-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This will be convenient in some tests etc.
* | | | | | Merge branch 'misc' into 'main'Ian Jackson2024-10-023-0/+16
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | tor-proto: SometimesUnboundedSink: provide as_inner accessor See merge request tpo/core/arti!2483
| * | | | | memquota: Note a TODO about PT channelsIan Jackson2024-10-021-0/+1
| | | | | |
| * | | | | memquota: Note a TODO about overheadsIan Jackson2024-10-021-0/+5
| | | | | |
| * | | | | tor-proto: SometimesUnboundedSink: provide as_inner accessorIan Jackson2024-10-021-0/+10
| | |_|_|/ | |/| | |
* | | | | Merge branch 'tab' into 'main'Ian Jackson2024-10-021-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Forbid hard tabs (and fix the one place in tree where there are some) See merge request tpo/core/arti!2488
| * | | | | Remove hard tabs in the one file that has them.Ian Jackson2024-10-021-2/+2
| |/ / / /
* | | | | Merge branch 'mpsc-types' into 'main'Ian Jackson2024-10-024-20/+40
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-proto: Introduce type aliases for some queues See merge request tpo/core/arti!2484
| * | | | | tor-proto: Introduce type alias for StreamReqSenderIan Jackson2024-10-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | This will make it a little easier to change the type later.
| * | | | | tor-proto: Introduce type aliases for stream queues (fmt)Ian Jackson2024-10-021-4/+3
| | | | | |
| * | | | | tor-proto: Introduce type aliases for stream queuesIan Jackson2024-10-024-18/+35
| |/ / / / | | | | | | | | | | | | | | | This will make it easier to change their types.
* | | | | Merge branch 'orport' into 'main'David Goulet2024-10-023-131/+597
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-chanmgr: improvements to channel selection code See merge request tpo/core/arti!2477
| * | | | | tor-chanmgr: minor doc improvementsSteven Engler2024-10-011-3/+3
| | | | | |
| * | | | | tor-chanmgr: add unit testsSteven Engler2024-10-011-0/+416
| | | | | |
| * | | | | tor-chanmgr: change `choose_best_channel` to take `IntoIterator`Steven Engler2024-10-011-1/+3
| | | | | |
| * | | | | tor-chanmgr: don't allow pending channels with no relay idsSteven Engler2024-10-012-2/+8
| | | | | |
| * | | | | tor-chanmgr: move channel selection logic to a new moduleSteven Engler2024-10-012-162/+172
| | | | | |
| * | | | | tor-chanmgr: improve readability of `choose_best_channel`Steven Engler2024-10-011-13/+45
| | |/ / / | |/| | |
* | | | | Merge branch 'ffi_seal' into 'main'Nick Mathewson2024-10-021-34/+41
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | artilib: Take a different approach to sealing a pair of traits. See merge request tpo/core/arti!2472
| * | | | | artilib: Take a different approach to sealing a pair of traits.Nick Mathewson2024-10-011-34/+41
| | | | | | | | | | | | | | | | | | | | | | | | This resolves a "TODO MSRV" comment.
* | | | | | Merge branch 'close-channel-2' into 'main'Nick Mathewson2024-10-025-13/+96
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide and implement SinkCloseChannel See merge request tpo/core/arti!2485
| * | | | | | tor-async-utils: Fix typo.Ian Jackson2024-10-021-1/+1
| | | | | | |