summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | python: Remove TODO about WinDLLNick Mathewson2024-10-031-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | @opara says that we'll want to have our API functions be `extern "C"` everywhere, and so `ctypes.CDLL` should work fine for them on Windows. This sounds good to me.
| * | | | python: annotate CDLL-related functionsNick Mathewson2024-10-031-16/+11
| | | | | | | | | | | | | | | | | | | | This, incidentally, turned up a repeated mistake in the code.
| * | | | python: Remove todos about annotating "params"Nick Mathewson2024-10-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Since params can be "anything encodeable to json", there isn't a lot of point in restricting its type.
| * | | | python: Prefer Optional over Union.Nick Mathewson2024-10-031-4/+4
| | | | |
| * | | | python: Type-annotate rpc.pyNick Mathewson2024-10-012-38/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has required a few code changes and turned up a few bugs. The type annotations pass with `mypy`. Notable code changes: With type annotations, variable assignment may no longer change the type of a variable. (I disagree with these semantics, but here we are.) Note that some TODOs remain: I have no clear sense how to annotate the library type from `ctypes`, and better wrappers are needed in some cases.
| * | | | python: Add minimal annotations for "mypy" to pass.Nick Mathewson2024-10-011-4/+6
| |/ / /
* | | | Merge branch 'circmgr-initial-test' into 'main'gabi-2502024-10-0310-291/+426
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | CircMgr: Start writing tests. See merge request tpo/core/arti!2444
| * | | | CircMgr: Start writing tests.Wesley Aptekar-Cassels2024-10-0310-291/+426
| | | | |
* | | | | Merge branch 'rpc-doc-automation' into 'main'Nick Mathewson2024-10-031-0/+669
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Python tool to build RPC method/type documentation. See merge request tpo/core/arti!2479
| * | | | rpc-doc-tool: improvements to HTML_HEADERNick Mathewson2024-10-031-2/+4
| | | | |
| * | | | rpc-doc-tool: move constants to head of fileNick Mathewson2024-10-031-26/+26
| | | | |
| * | | | rpc-doc-tool: Use __file__ in place of argv[0]Nick Mathewson2024-10-031-4/+6
| | | | |
| * | | | rpc-doc-tool: Fix handling for "magic" headings.Nick Mathewson2024-10-021-4/+3
| | | | |
| * | | | add references for rustdoc links.Nick Mathewson2024-10-011-8/+45
| | | | |
| * | | | rpc-doc-tool: only emit Parameters link when there are some.Nick Mathewson2024-10-011-1/+15
| | | | |
| * | | | Python tool to build RPC method/type documentation.Nick Mathewson2024-10-011-0/+615
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses the RPC library to extract a list of RPC methods and objects; uses rustdoc-nightly to extract documentation for them; outputs a markdown document.
* | | | | 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-0229-81/+620
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-023-0/+41
| | | | | | |
| * | | | | | 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-024-5/+15
| | | | | | |
| * | | | | | Some HasMemoryCost impls in tor-cellIan Jackson2024-10-0210-65/+169
| | | | | | |
| * | | | | | Some HasMemoryCost impls in tor-linkspecIan Jackson2024-10-023-3/+11
| | | | | | |
| * | | | | | Some HasMemoryCost impls in tor-hscryptoIan Jackson2024-10-023-0/+14
| | | | | | |
| * | | | | | Some HasMemoryCost impls in tor-llcryptoIan Jackson2024-10-025-1/+21
| | | | | | |
| * | | | | | Some HasMemoryCost impls in tor-unitsIan Jackson2024-10-023-1/+10
| | | | | | |
| * | | | | | 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-025-1/+345
| | | | | | |
| * | | | | | tor-memquota: Make EnabledToken constructors constIan Jackson2024-10-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be convenient in some tests etc.
| * | | | | | Bump tor-units up the crate stackIan Jackson2024-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to need this to use tor-memquota.
* | | | | | | 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-024-3/+53
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forbid hard tabs (and fix the one place in tree where there are some) See merge request tpo/core/arti!2488
| * | | | | | forbid-hard-tabs: Improve doc commentIan Jackson2024-10-021-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2488#note_3087164
| * | | | | | Run forbid-hard-tabs in CIIan Jackson2024-10-021-0/+1
| | | | | | |