Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

372 B
Raw Blame
//! JSON serialization with a hard output-size limit.
//!
//! The limit is enforced while `serde_json` writes, so callers never allocate
//! the complete encoded value before discovering that it is too large.

mod error;
mod serializer;

pub use error::BoundedJsonError;
pub use serializer::{json_string_between_with_limit, to_string_with_limit};

#[cfg(test)]
mod tests;