1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 19:02:22 +01:00

Reduce public API

This commit is contained in:
sharkdp
2020-04-22 18:30:06 +02:00
committed by David Peter
parent 26c951fec4
commit 13e6b3fac7
5 changed files with 42 additions and 41 deletions

View File

@@ -1,14 +1,15 @@
/// `bat` is a library to print syntax highlighted content.
///
/// ```
/// use bat::PrettyPrinter;
///
/// PrettyPrinter::new()
/// .input_from_bytes(b"<span style=\"color: #ff00cc\">Hello world!</span>\n")
/// .language("html")
/// .run()
/// .expect("no errors");
/// ```
//! `bat` is a library to print syntax highlighted content.
//!
//! ```
//! use bat::PrettyPrinter;
//!
//! PrettyPrinter::new()
//! .input_from_bytes(b"<span style=\"color: #ff00cc\">Hello world!</span>\n")
//! .language("html")
//! .run()
//! .expect("no errors");
//! ```
pub mod assets;
pub mod assets_metadata;
pub mod config;
@@ -21,7 +22,7 @@ mod less;
pub(crate) mod line_range;
mod output;
mod preprocessor;
pub mod pretty_printer;
mod pretty_printer;
pub(crate) mod printer;
pub(crate) mod style;
pub(crate) mod syntax_mapping;
@@ -33,6 +34,3 @@ pub use pretty_printer::PrettyPrinter;
pub use style::{StyleComponent, StyleComponents};
pub use syntax_mapping::{MappingTarget, SyntaxMapping};
pub use wrap::WrappingMode;
#[cfg(feature = "paging")]
pub use config::PagingMode;