aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-rpc-client-core/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
|
* Removed unnecessary lintpryty262026-07-151-1/+1
| | | | Removed unnecessary lint
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* rpc: Rename nb_stream.rs → ll_conn.rsNick Mathewson2026-03-251-2/+2
| | | | | Since we are no longer calling these types "streams" I've decided to revert to the old name for this module.
* rpc: Remove WantIo and expose wants_to_write().Nick Mathewson2026-03-051-1/+1
|
* rpc: Change Waker implementation to EventLoop.Nick Mathewson2026-03-051-2/+2
| | | | | | | | | | | Per discussion, it makes more sense to have the API be one that gets called when our IO interests change. Additionally, this commit removes the try_reading and try_writing booleans, as previously discussed. I've left a couple of XXXX comments where more documentation or thought is likely needed.
* rpc: API for event-driven IO.Nick Mathewson2026-03-051-2/+2
| | | | | | | This API provides the necessary functionality to use an RpcConn inside a poll-like event loop. This is part of #1856.
* RPC: Raname Tag,RequestTag to UserTag.Nick Mathewson2026-03-051-2/+2
|
* rpc: Backend support for pollable requests.Nick Mathewson2026-02-261-1/+1
| | | | | | In order to implement tagged pollable requests, we need a separate response queue for them, and we need to dispatch requests to that queue as appropriate.
* Allow clippy::collapsible_if to triggerGabriela Moldovan2026-02-161-0/+1
| | | | | | | | | `clippy::collapsible_if` started triggering after bumping the MSRV to 1.88. Since this triggers from a lot of places, and since there even are a couple of instances where we explicitly allow `clippy::collapsible_ifs`, I've opened #2342 for deciding what to do about it.
* rpc: Clean up pub items in nb_stream.Nick Mathewson2026-02-041-1/+2
| | | | | (We don't need as many of these to be public as I had originally thought.)
* rpc: Replace llconn backend with nb_stream backend.Nick Mathewson2026-02-041-2/+1
| | | | All the tests still pass!
* rpc: New nonblocking backend for interacting with streamsNick Mathewson2026-02-041-0/+1
| | | | | | | | There are two levels here. At the lower level, the caller is responsible for providing their own select/poll wrapper. At the higher level, we use mio to provide our own. Before the end of this branch, this new module will replace llconn.
* maint/add_warning: Run script to add new warningGabriela Moldovan2026-01-271-0/+1
| | | | This adds the lint to all our crates.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-1/+1
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* rpclib: Move socketpair to a testing module; use it in llconn testsNick Mathewson2025-02-031-0/+2
|
* rpclib: Implement accessors for ConnectFailureNick Mathewson2025-01-291-1/+4
|
* clippy: deny `mod_module_files`Steven Engler2025-01-061-0/+1
| | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
* add_warnings, *: Allow clippy::needless_lifetimesNick Mathewson2024-12-031-0/+1
| | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765.
* rpclib: FFI for opening data streams.Nick Mathewson2024-09-091-1/+1
| | | | | There's a blocking TODO here about exposing socks error codes that I still need to solve.
* rpclib: Unify error type for ValidatedRequest failure.Nick Mathewson2024-08-071-1/+1
|
* rpc: Initial core of an FFI interface.Nick Mathewson2024-07-311-1/+6
| | | | | | | | | This only covers the absolute minimal API in order to launch a connection and run simple requests, and it doesn't document anything nearly well enough. Nonetheless I think it's good enough for an initial review, to make sure that we've got the basics right (as well as a general consensus on the error handling API, naming, and so forth).
* rpc-client: Apply the rest of the big warning set.Nick Mathewson2024-07-161-2/+40
|
* rpc client: Documentation.Nick Mathewson2024-07-161-0/+4
|
* Make ErrorResponse (a string) our preferred way to return an error.Nick Mathewson2024-07-161-3/+1
| | | | | | | | If we return RpcError by default, we don't give a good way to actually access the original error string. (Nonetheless, we still enforce that errors can be decoded as RpcError.)
* rpc-client: Resolve some dead-code warnings.Nick Mathewson2024-07-161-3/+2
|
* rpc client: resolve unused-foo warnings.Nick Mathewson2024-07-161-2/+0
|
* rpc-client: Expose a few types as pub.Nick Mathewson2024-07-161-0/+3
|
* WIP: Lower and middle levels of Arti rpc core.Nick Mathewson2024-07-161-0/+10