roadmap

What the review read and ran

An appendix to the milestone.

The crate

partsfoundry/byte_sink_contract at 8a477c6a3167f6cb4cb76741cecebae20c306825, version 0.1.0 with publish = false and no tag, a fresh clone of main. The census of milestone 1129 (the combine review) counted the same commit. The lane read in full: Cargo.toml, README.md, CHANGELOG.md, docs/stranger-test.md, src/lib.rs (the library and twelve unit tests), src/verification.rs (six Kani harnesses), .github/mutants-exempts and .github/workflows/release.yml.

The commands

All of these ran with rustc 1.100.0 on a Linux x86_64 host, with the build directory outside the clone. git status --short showed the clone clean afterward.

The scratch programs

One scratch crate depends on the clone by path, on cobs at =0.5.1 with no default feature and on embedded-io at =0.7.1. Each program is one file in it.

The comparators read

Each crate below came from crates.io at the version in the block's prior-art table, into a directory of its own, and the lane read the files named.

Measured at the same time and not read:

crate version total 90 days reverse dependencies updated
defmt 1.2.0 130,329,567 97,141,048 1,380 2026-10-15
postcard 1.2.0 103,293,885 46,645,473 1,820 2026-11-21
asynchronous-codec 0.7.0 40,605,589 7,396,487 107 2023-10-11
embedded-io-async 0.7.0 9,425,517 3,962,732 323 2025-09-30
ipc-channel 0.23.1 7,579,368 1,618,155 56 2026-10-24
rtt-target 0.6.2 1,594,538 261,341 86 2025-10-13
corncobs 0.1.4 513,853 69,601 6 2025-06-11
sel4 0.0.12 19,040 148 1 2017-04-24

Seven searches of crates.io, sorted by recent downloads, found no crate for a byte stream in a kernel's message registers: "byte sink", "message registers", "ipc framing", "inline message", "end of stream", "pipe protocol no_std" and "sel4 ipc".

The systems outside Rust

Each file came from the project's public repository at the tag named.

seL4 is under the GPL version 2 with BSD-licensed user headers, and rust-sel4 is MIT; the review read them for their interface shape only.

The comparison

axis byte_sink_contract seL4 with rust-sel4 cobs 0.5.1 embedded-io 0.7.1
what a message is three words: opcode, kind, severity and count, then sixteen bytes an info word and up to 120 words bytes up to a zero not applicable, a trait
end of stream one exact message each protocol's own none; a frame ends at its zero none
the first word a bare u64 and free functions a wrapper type and methods not applicable not applicable
a builder given a value too large cannot happen, by the parameter types panics panics, or try_encode not applicable
the decoder's refusal a variant of the value, no cause none, the kernel checks the length Result, an enum of three Result, a kind for each error
a destroyed peer against none Gone and NoSink each protocol's own not applicable BrokenPipe and Unsupported
no_std, no allocation both both both, with no default feature both
proofs six Kani harnesses the kernel's own proof, not the library's none none

The benchmark

A scratch crate depends on the clone by path and on cobs at =0.5.1, built with cargo build --release --bin bench, rustc 1.100.0, on a Linux x86_64 host (an Intel Xeon Platinum 8160 at 2.10 GHz, 80 threads).

Each row runs a closure in a loop that starts at 64 repeats and doubles until one pass lasts 50 ms. Seven passes follow at that count, and the figure is the lowest pass divided by the count. std::hint::black_box wraps every input and every result. Each function under test sits behind an #[inline(never)] wrapper, so a row includes one call.

The input is 4,096 bytes, none of them zero, so cobs writes one run for each 254 bytes. The rows:

operation time
pack, 16 bytes 5.41 ns
pack, 9 bytes 9.82 ns
unpack, 16 bytes 5.27 ns
unpack, 9 bytes 5.38 ns
scratch unpack by value, 16 bytes 8.78 ns
scratch unpack by value, 9 bytes 8.96 ns
scratch strict unpack, 16 bytes 5.43 ns
scratch strict unpack, 9 bytes 5.92 ns
4,096 bytes: pack and unpack for each of 256 messages 4,917 ns
4,096 bytes: the same with the strict unpack 5,278 ns
cobs::encode, 16 bytes 38.63 ns
cobs::decode, 16 bytes 39.05 ns
4,096 bytes: cobs::encode then cobs::decode, one frame 13,444 ns
4,096 bytes: copy_from_slice, the floor 53.7 ns

What was not run