Skip to main content

libgrite_git/
lib.rs

1//! Git-backed WAL and sync operations for Grit
2//!
3//! This crate provides Git integration for Grit'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 error;
10mod chunk;
11mod wal;
12mod snapshot;
13mod sync;
14mod lock_manager;
15
16pub use error::GitError;
17pub use chunk::{encode_chunk, decode_chunk, chunk_hash, CHUNK_MAGIC, CHUNK_VERSION, CHUNK_CODEC};
18pub use wal::{WalManager, WalCommit};
19pub use snapshot::{SnapshotManager, SnapshotRef, SnapshotMeta};
20pub use sync::{SyncManager, PullResult, PushResult};
21pub use lock_manager::{LockManager, LockGcStats};