aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-rpc-client-core/src/msgs/request.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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: Clean up pub items in nb_stream.Nick Mathewson2026-02-041-0/+2
| | | | | (We don't need as many of these to be public as I had originally thought.)
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* rpc-client: Increase test coverage for the msgs modulevcrn2025-03-181-0/+34
|
* rpclib: Rename ParsedRequest to ParsedRequestFieldsNick Mathewson2024-08-071-11/+10
| | | | | | | | | | | | | This name change should emphasize that the (module-private) `ParsedRequestFields` type is only for parsing, and we aren't supposed to actually construct them for our own requests. With this change, and the others on the branch, there's no longer a risk of trying to serialize a ParsedRequestFields (since it doesn't implement Serialize), or to deserialize a Request (since it doesn't implement Deserialize). Closes #1511.
* rpclib: Use JsonValue to re-encode requests.Nick Mathewson2024-08-071-96/+54
| | | | | | | | As with responses, we previously used a strategy that could have failed in the future, if we forgot to add an "unexpected_fields" member to one of our structs. Closes #1512.
* rpclib: Unify error type for ValidatedRequest failure.Nick Mathewson2024-08-071-7/+28
|
* rpclib: Refactor request canonicalizationNick Mathewson2024-08-071-9/+30
| | | | | | This lets us make a couple of types module-private, and prepares the way for using the serde_json::Value trick on requests too.
* rpclib: Apply serde(default) to RpcMeta::updates.Nick Mathewson2024-08-051-0/+1
| | | | This enable a `meta` object to have no `updates` field set.
* rpclib: preserve unrecognized request fieldsNick Mathewson2024-08-041-4/+38
| | | | | | When writing a request, we want to keep any fields that we don't recognize, in case the application (and arti) know about some field that we haven't heard of.
* rpclib: Split ParsedRequest and Request types.Nick Mathewson2024-08-041-18/+51
| | | | (They are about to diverge even further.)
* rpclib: Initial tests for RpcConnNick Mathewson2024-07-241-1/+1
| | | | | | The "complex" test here is fairly involved, since it tries to detect deadlocks and race conditions by using multiple threads and answering requests out of order.
* rpclib: do not include `"meta":null` when serializing.Nick Mathewson2024-07-241-0/+1
|
* rpc: Make "meta" an Option.Nick Mathewson2024-07-161-6/+11
|
* rpc client: Documentation.Nick Mathewson2024-07-161-1/+30
|
* rpc-client: Resolve some dead-code warnings.Nick Mathewson2024-07-161-13/+1
|
* Rename CmdError to ProtoError.Nick Mathewson2024-07-161-3/+3
|
* RPC: Implement connection negotiation.Nick Mathewson2024-07-161-9/+23
|
* WIP: Lower and middle levels of Arti rpc core.Nick Mathewson2024-07-161-0/+202