#![forbid(unsafe_code)]
#![warn(clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::missing_errors_doc)]
#![allow(clippy::missing_panics_doc)]
#![allow(clippy::struct_excessive_bools)]
#![allow(clippy::match_same_arms)]
#![allow(clippy::unused_self)]
#![allow(clippy::too_many_lines)]
pub mod ansi;
pub mod r#box;
pub mod cells;
pub mod color;
pub mod console;
pub mod emoji;
pub mod filesize;
pub mod highlighter;
pub mod interactive;
pub mod live;
pub mod logging;
pub mod markup;
pub mod measure;
pub mod protocol;
pub mod renderables;
pub mod segment;
pub mod style;
pub mod sync;
pub mod terminal;
pub mod text;
pub mod theme;
pub mod prelude {
pub use crate::ansi::AnsiDecoder;
pub use crate::r#box::BoxChars;
pub use crate::color::{
Color, ColorSystem, ColorTriplet, ColorType, DEFAULT_TERMINAL_THEME, DIMMED_MONOKAI,
MONOKAI, NIGHT_OWLISH, SVG_EXPORT_THEME, TerminalTheme,
};
pub use crate::console::{
CONSOLE_HTML_FORMAT, CONSOLE_SVG_FORMAT, Console, ConsoleOptions, ExportHtmlOptions,
ExportSvgOptions, LogLevel, LogOptions,
};
pub use crate::emoji::EmojiVariant;
pub use crate::filesize::{
SizeUnit, binary, binary_speed, binary_with_precision, decimal, decimal_speed,
decimal_with_precision, format_size, format_speed,
};
pub use crate::highlighter::{Highlighter, NullHighlighter, RegexHighlighter, ReprHighlighter};
pub use crate::interactive::{Pager, Prompt, PromptError, Status};
pub use crate::live::{Live, LiveOptions, VerticalOverflowMethod};
pub use crate::logging::RichLogger;
#[cfg(feature = "tracing")]
pub use crate::logging::RichTracingLayer;
pub use crate::measure::Measurement;
pub use crate::protocol::{RichCast, RichCastOutput, rich_cast};
pub use crate::renderables::{
Align, AlignLines, AlignMethod, BarStyle, Cell, Column, Columns, Constrain, Control,
DownloadColumn, Emoji, FileSizeColumn, Inspect, InspectOptions, Layout, LayoutSplitter,
PaddingDimensions, Panel, Pretty, PrettyOptions, ProgressBar, Region, Row, Rule, Spinner,
Table, TotalFileSizeColumn, Traceback, TracebackFrame, TransferSpeedColumn, Tree,
TreeGuides, TreeNode, VerticalAlign, VerticalAlignMethod, align_text, inspect,
print_exception,
};
pub use crate::segment::{
ControlCode, ControlType, Segment, escape_control_codes, strip_control_codes,
};
pub use crate::style::{Attributes, Style};
pub use crate::text::{JustifyMethod, OverflowMethod, Span, Text};
pub use crate::theme::{Theme, ThemeError, ThemeStackError};
#[cfg(feature = "syntax")]
pub use crate::renderables::{Syntax, SyntaxError};
#[cfg(feature = "markdown")]
pub use crate::renderables::Markdown;
#[cfg(feature = "json")]
pub use crate::renderables::{Json, JsonError, JsonTheme};
}
pub use color::{
Color, ColorSystem, ColorTriplet, ColorType, DEFAULT_TERMINAL_THEME, DIMMED_MONOKAI, MONOKAI,
NIGHT_OWLISH, SVG_EXPORT_THEME, TerminalTheme,
};
pub use console::Console;
pub use console::{CONSOLE_HTML_FORMAT, CONSOLE_SVG_FORMAT, ExportHtmlOptions, ExportSvgOptions};
pub use live::{Live, LiveOptions, VerticalOverflowMethod};
pub use logging::RichLogger;
#[cfg(feature = "tracing")]
pub use logging::RichTracingLayer;
pub use renderables::{Layout, LayoutSplitter, Region};
pub use segment::Segment;
pub use style::{Attributes, Style};
pub use text::{Span, Text};
pub use theme::{Theme, ThemeError, ThemeStackError};