anstyle_progress/lib.rs
1//! ANSI escape code progress reporting (OSC 9;4)
2//!
3//! For details on the protocol, see
4//! [ConEmu's docs](https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC),
5//! [Tutorial: Set the progress bar in the Windows Terminal](https://learn.microsoft.com/en-us/windows/terminal/tutorials/progress-bar-sequences)
6
7#![cfg_attr(not(feature = "std"), no_std)]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9#![warn(missing_docs)]
10#![warn(clippy::std_instead_of_core)]
11#![warn(clippy::std_instead_of_alloc)]
12#![warn(clippy::print_stderr)]
13#![warn(clippy::print_stdout)]
14
15mod progress;
16#[cfg(feature = "std")]
17mod query;
18
19pub use progress::TermProgress;
20pub use progress::TermProgressStatus;
21#[cfg(feature = "std")]
22pub use query::supports_term_progress;
23
24#[doc = include_str!("../README.md")]
25#[cfg(doctest)]
26pub struct ReadmeDoctests;