arti-rpc-client-core

Crates.ioarti-rpc-client-core
lib.rsarti-rpc-client-core
version0.24.0
sourcesrc
created_at2024-08-01 17:41:04.318899
updated_at2024-10-31 14:21:36.404188
descriptionClient library for Arti RPC
homepagehttps://gitlab.torproject.org/tpo/core/arti/-/wikis/home
repositoryhttps://gitlab.torproject.org/tpo/core/arti.git/
max_upload_size
id1322304
size214,190
Ian Jackson (ijackson)

documentation

README

Notes so far:

  • On top of io::{BufRead,Write}, we build llconn::{Reader,Writer}. Reader is a tiny wrapper; Writer validates the syntax of outgoing messages.

  • On top of them, we build conn::RpcConn. This is the one I expect most users would want; it matches requests to responses and assigns IDs as needed.

  • I'm not using tokio or async at all. I'm trying to keep dependencies to a minimum.

  • I am not following our usual practice with Display on errors; instead, I am including inner errors in the Display implementation of the outer errors. The rationale here is that we probably just want to return a single string for FFI purposes.

Coming next:

  • clean out the X X X Xs
  • diziet's revisions on connimpl.
  • actual implementations for making connections.
  • More tests.
  • update this readme.
  • interface for connecting to arti
  • Initial C FFI wrappers.
  • C FFI wrappers for everything reasonable
  • enable the usual warnings.
  • Finish this readme.
Commit count: 0

cargo fmt