Skip to main content

llama_cpp_log_decoder/
lib.rs

1//! Decoder for the llama.cpp / ggml log callback stream.
2//!
3//! The C side delivers log lines in fragments: a missing trailing newline
4//! signals that more fragments will follow at `GGML_LOG_LEVEL_CONT`. This
5//! crate is a pure `&mut self` transducer — feed `(level, text)` pairs, get
6//! complete [`LogLine`]s back when the trailing newline arrives. No globals,
7//! no atomics, no FFI, no logger.
8//!
9//! [`LogLine`]: log_line::LogLine
10
11pub mod decode_anomaly;
12pub mod decode_output;
13pub mod decode_result;
14pub mod incoming_log_level;
15pub mod log_decoder;
16pub mod log_level;
17pub mod log_line;