#serialization #locustdb #tool #locustdb-serialization #install-capnproto

locustdb-serialization

Serialization formats used by LocustDB for peristent storage and client/server communication

3 releases

new 0.2.2 Apr 3, 2025
0.2.1 May 12, 2024
0.2.0 May 5, 2024

#385 in Database implementations

Download history 8/week @ 2025-02-10 2/week @ 2025-02-17 114/week @ 2025-03-31

114 downloads per month
Used in locustdb

Custom license

510KB
10K SLoC

LocustDB Serialization

Util crate that defines Cap'n Proto schema and serialization/deserialization logic for data structures used for persistent storage and client-server communication in LocustDB.

To regenerate the Cap'n Proto definitions, follow this process:

  1. [Install the Cap'n Proto CLI tool][install-capnproto]
  2. cargo install capnpc
  3. capnp compile -orust:src --src-prefix=schemas schemas/{dbmeta,partition_segment,wal_segment,api}.capnp

Dependencies

~1.5–2MB
~46K SLoC