Skip to main content

farben_core/
lib.rs

1//! Core library for the farben terminal styling crate.
2//!
3//! Provides the full pipeline for parsing farben markup strings into ANSI escape sequences:
4//! tokenization ([`lexer`]), ANSI encoding ([`ansi`]), rendering ([`parser`]),
5//! named style registration ([`registry`]), and error types ([`errors`]).
6//!
7//! Typical usage flows through the [`lexer::tokenize`] and [`parser::render`] functions,
8//! with optional style definitions via the [`registry`] module and its macros.
9
10pub mod ansi;
11pub mod debug;
12pub mod degrader;
13pub mod env;
14pub mod errors;
15pub mod lexer;
16pub mod parser;
17pub mod registry;
18pub mod strip;
19
20#[cfg(feature = "anstyle")]
21pub mod anstyle_conv;