store: move all capnp code to capnp.rs

Consolidate capnp serialization in one place:
- capnp_enum! and capnp_message! macros
- read_text/read_uuid helpers
- Type-to-capnp mappings
- from_capnp_migrate migration impls

types.rs now only has pure Rust types and helpers.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-13 19:17:31 -04:00
parent e48ca2ecad
commit ba53597cf2
5 changed files with 229 additions and 211 deletions

View file

@ -1,6 +1,7 @@
// Read-only access abstraction for the memory store
use super::types::*;
use super::Store;
// ---------------------------------------------------------------------------
// StoreView: read-only access trait for search and graph code.