styx_format/
lib.rs

1//! Core formatting and parsing utilities for Styx.
2//!
3//! This crate provides the low-level building blocks for Styx serialization
4//! and deserialization, independent of any specific framework (facet, serde, etc.).
5
6mod cst_format;
7mod options;
8mod scalar;
9mod value_format;
10mod writer;
11
12pub use cst_format::{format_cst, format_source};
13pub use options::FormatOptions;
14pub use scalar::{can_be_bare, count_escapes, count_newlines, escape_quoted, unescape_quoted};
15pub use value_format::{format_object_braced, format_value, format_value_default};
16pub use writer::StyxWriter;