Skip to main content

citadel/
lib.rs

1mod builder;
2mod database;
3
4#[cfg(feature = "audit-log")]
5pub mod audit;
6
7// Public API
8pub use builder::DatabaseBuilder;
9pub use citadel_sync::SyncKey;
10pub use database::{Database, DbStats, SyncOutcome};
11
12#[cfg(feature = "audit-log")]
13pub use audit::{
14    read_audit_log, scan_corrupted_audit_log, verify_audit_log, AuditConfig, AuditEntry,
15    AuditEventType, AuditVerifyResult, ScanResult,
16};
17pub use citadel_core::error::{Error, Result};
18pub use citadel_core::types::{Argon2Profile, CipherId, KdfAlgorithm};
19pub use citadel_txn::integrity::{IntegrityError, IntegrityReport};
20
21// Internal crate re-exports (used by integration tests and advanced usage)
22pub use citadel_buffer as buffer;
23pub use citadel_core as core;
24pub use citadel_crypto as crypto;
25pub use citadel_io as io;
26pub use citadel_page as page;
27pub use citadel_txn as txn;