docs.rs failed to build sui-daemon-frame-0.1.10
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
sui-daemon-frame — async frame codec for the rkyv-over-UDS local protocol.
Wire format
[magic : 4B = "SUI1"] [len : 4B u32 LE] [body : N bytes of rkyv-archived WireFrame]
The magic + length prefix is what lets a misaligned reader fail fast.
rkyv's own validation pass (rkyv::access) catches body-shape errors;
this codec only enforces the framing envelope.
Scope
This crate is transport-agnostic: it codes against tokio::io::Async{Read,Write},
so the same primitives work for UnixStream, TcpStream, in-memory
DuplexStream (great for tests), or any future Bytes-stream abstraction.
Reuse surface
sui-daemon::graph_server— reads frames from each accepted client.sui-daemon-client— writes requests + reads responses on a single multiplexed connection.- Tests across the workspace — drive
DuplexStreamend-to-end without touching the filesystem. - Future fuzzers — call [
read_frame] on arbitrary bytes and assert only framing-level invariants (rkyv validation is downstream).