3 releases (breaking)

0.23.0 Sep 30, 2024
0.22.0 Sep 3, 2024
0.21.0 Aug 1, 2024

#2131 in Network programming

Download history 99/week @ 2024-07-29 8/week @ 2024-08-05 8/week @ 2024-08-12 137/week @ 2024-09-02 5/week @ 2024-09-16 25/week @ 2024-09-23 183/week @ 2024-09-30 15/week @ 2024-10-07 10/week @ 2024-10-14

233 downloads per month

MIT/Apache

255KB
4.5K SLoC

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.

Dependencies

~14MB
~248K SLoC