Skip to main content

lonca_core/
lib.rs

1//! Lonca core: deterministic building blocks shared by the daemon, the
2//! policy engine and the auditor.
3//!
4//! Nothing in this crate talks to the network, calls an AI model or reads the
5//! clock. Time enters only as data (`time_ms` fields) chosen by the daemon.
6
7#![forbid(unsafe_code)]
8// The trusted core: a panic in the single writer stops every repository,
9// so bad input must become an error or a denial (clippy.toml lets tests panic).
10#![warn(clippy::unwrap_used, clippy::expect_used, clippy::indexing_slicing)]
11
12pub mod canonical;
13pub mod changeid;
14pub mod error;
15pub mod keys;
16pub mod objects;
17pub mod oplog;
18pub mod ops;
19pub mod paths;
20#[cfg(feature = "store")]
21pub mod store;
22
23pub use changeid::ChangeId;
24pub use error::{Error, Result};
25pub use objects::{FileEntry, FileMap, FileMode, GitId};
26#[cfg(feature = "store")]
27pub use store::Store;