#![deny(unsafe_op_in_unsafe_fn)]
#![warn(missing_docs)]
#[cfg(not(target_endian = "little"))]
compile_error!(
"tickertape's on-disk format is little-endian and only little-endian targets are supported"
);
#[cfg(not(unix))]
compile_error!("tickertape supports Unix (Linux and macOS) only");
mod affinity;
mod checkpoint;
pub mod clock;
mod config;
mod crc;
mod error;
#[cfg(feature = "fault-injection")]
#[doc(hidden)]
pub mod fault;
#[cfg(not(feature = "fault-injection"))]
mod fault;
pub mod format;
pub mod inspect;
mod journal;
mod mmap;
mod notify;
mod prefault;
#[cfg(all(test, loom))]
mod protocol_model;
mod reader;
mod record;
pub mod retention;
#[doc(hidden)]
pub mod samples;
pub mod status;
mod writeback;
mod writer;
pub use config::{Backoff, HelperCpus, ReaderConfig, RecoveryPolicy, WriterConfig};
pub use error::{CorruptReason, Error, Result};
pub use reader::{Reader, Records};
pub use record::{NewRecord, OwnedRecord, Record};
pub use writer::{BatchError, CheckpointProgress, RecoveryAction, RecoveryReport, Writer};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
#[cfg(test)]
mod tests {
#[test]
fn version_is_set() {
assert!(!super::VERSION.is_empty());
}
}