journal_core/lib.rs
1//! Core functionality for working with systemd journal files.
2//!
3//! This crate provides low-level file I/O for systemd journal files.
4//!
5//! For related functionality:
6//! - High-level journaling with rotation and retention: see `journal-log-writer` crate
7//! - File tracking and monitoring: see `journal-registry` crate
8//! - Indexing and querying: see `journal-index` crate
9
10// Core error types used throughout the crate
11pub mod error;
12
13// Collection type aliases
14pub mod collections;
15
16// Low-level journal file format I/O
17pub mod file;
18
19// Forward Secure Sealing primitives
20// Low-level `journal-core` module for FSS integration.
21// The high-level Rust SDK public verification API is not finalized and will come in Phase 2B.
22pub mod fss;
23
24// Forward Secure Sealing writer support
25pub mod seal;
26
27// Re-export repository types from journal-registry for convenience
28pub mod repository {
29 pub use journal_registry::repository::*;
30}
31
32// Re-export commonly used types for convenience
33pub use error::{JournalError, Result};
34
35// File module re-exports
36pub use file::{
37 BucketUtilization, Direction, JournalCursor, JournalFile, JournalFileOptions, JournalReader,
38 JournalWriter, Location,
39};
40
41// SIGBUS handler for memory-mapped file access
42pub use file::sigbus::install_handler as install_sigbus_handler;