causa-protocol 0.1.0

Causa — a minimal context kernel for Rust agents (facts, ports, adapters)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Incremental, transport-free Server-Sent Events framing over UTF-8 bytes.
//!
//! [`SseParser::decode`] consumes a borrowed prefix and returns at most one
//! complete event. Chunk boundaries may split characters or line endings.
//! [`SseParser::finish`] checks EOF without inventing a delimiter or event.

mod parser;

pub use parser::{SseEvent, SseParser};

#[cfg(test)]
mod tests;