| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Use {u64,usize}::div_ceil
See merge request tpo/core/arti!2473
|
| | | |_|/
| |/| |
| | | |
| | | |
| | | | |
Previously we had to avoid it, but now that our MSRV is above 1.73
we can use it with abandon.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
python: Type-annotate rpc.py
See merge request tpo/core/arti!2476
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
@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.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This, incidentally, turned up a repeated mistake in the code.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since params can be "anything encodeable to json", there isn't a lot
of point in restricting its type.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | |/ / / |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
CircMgr: Start writing tests.
See merge request tpo/core/arti!2444
|
| | | | | | |
|
| |\ \ \ \ \
| |/ / / /
|/| | | |
| | | | |
| | | | | |
Python tool to build RPC method/type documentation.
See merge request tpo/core/arti!2479
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
Revise RPC documentation to be more informative.
See merge request tpo/core/arti!2489
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Based on review from @opara.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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`.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
tor-socksproto: fix "check_doc_features" warning
See merge request tpo/core/arti!2487
|
| | | | | | | |
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Implement tor_memquota:HasMemory cost for a lot of types
See merge request tpo/core/arti!2459
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Properted by
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086841
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit def8810156f8c2bf8f18ef9ad75a61601f6fea78.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086841
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This comment is more applicable to the memory_cost_structural_copyx
macro than the wrapper type, especially since the wrapper type is
going away.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086839
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2459#note_3086837
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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.
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It turns out we're mostly going to want to deal in Accounts, not
Arc<MemoryQuotaaTracker>s.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This will be convenient in some tests etc.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
We're going to need this to use tor-memquota.
|
| |\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | |
| | | | | | |
| | | | | | | |
tor-proto: SometimesUnboundedSink: provide as_inner accessor
See merge request tpo/core/arti!2483
|
| | | | | | | | |
|