Registry / cli / indicatif

indicatif

JSON →
library0.18.4rscratesunverified

A progress bar and CLI reporting library for Rust.

# Cargo.toml [dependencies] indicatif = "0.18.4"
INSTALL
IMPORT
SIG · INDICATIF
I
indicatif
clirustv0.18.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ProgressBar
use indicatif::ProgressBar;

Shows a simple progress bar that increments to 100.

use indicatif::ProgressBar; use std::thread::sleep; use std::time::Duration; fn main() { let pb = ProgressBar::new(100); for _ in 0..100 { sleep(Duration::from_millis(50)); pb.inc(1); } pb.finish_with_message("done"); }
Debug
Known issues
gotchaProgress bars may not render correctly in non-TTY environments (e.g., piped output).
fix
Use `ProgressBar::with_draw_target` to handle non-TTY cases or check `atty::is(atty::Stream::Stdout)`.
affects: >=0.18.0
Upgrade
Version history
0.18.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
24
Resources
indicatif — cargo add indicatif · libregistry