8 releases (breaking)

0.28.0 Mar 3, 2025
0.27.0 Feb 7, 2025
0.26.0 Jan 7, 2025
0.25.0 Dec 2, 2024
0.21.0 Aug 1, 2024

#2077 in Network programming

Download history 11/week @ 2024-11-18 282/week @ 2024-11-25 197/week @ 2024-12-02 57/week @ 2024-12-09 114/week @ 2025-01-06 8/week @ 2025-01-13 508/week @ 2025-02-03 115/week @ 2025-02-10 8/week @ 2025-02-17 10/week @ 2025-02-24 159/week @ 2025-03-03

401 downloads per month

MIT/Apache

1MB
13K 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

~9–21MB
~297K SLoC