These may as well be inlined, and hardly need tests, since they just alias AsyncReadExt::read_u64_le / AsyncWriteExt::write_u64_le. Boolean reading is worth making explicit, since callers may differ on how they want to handle values other than 0 and 1. Boolean writing simplifies to `.write_u64_le(x as u64)`, which is also fine to inline. Change-Id: Ief9722fe886688693feb924ff0306b5bc68dd7a2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11549 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
5 lines
157 B
Rust
5 lines
157 B
Rust
//! Module parsing and emitting the wire format used by Nix, both in the
|
|
//! nix-daemon protocol as well as in the NAR format.
|
|
|
|
mod bytes;
|
|
pub use bytes::*;
|