libgrite_git/lib.rs
1//! Git-backed WAL and sync operations for Grite
2//!
3//! This crate provides Git integration for Grite's event system:
4//! - CBOR chunk encoding/decoding for portable event storage
5//! - WAL (Write-Ahead Log) operations via `refs/grite/wal`
6//! - Snapshot management via `refs/grite/snapshots/<ts>`
7//! - Push/pull sync operations with conflict handling
8
9mod chunk;
10mod error;
11mod lock_manager;
12mod snapshot;
13mod sync;
14mod wal;
15
16pub use chunk::{chunk_hash, decode_chunk, encode_chunk, CHUNK_CODEC, CHUNK_MAGIC, CHUNK_VERSION};
17pub use error::GitError;
18pub use lock_manager::{LockGcStats, LockManager};
19pub use snapshot::{SnapshotManager, SnapshotMeta, SnapshotRef};
20pub use sync::{PullResult, PushResult, SyncManager};
21pub use wal::{WalCommit, WalManager};