strides

Crates.iostrides
lib.rsstrides
version0.0.0
created_at2025-12-29 19:08:57.064237+00
updated_at2025-12-29 19:08:57.064237+00
descriptionAsync-first terminal UI spinners and progress bars
homepage
repositoryhttps://github.com/matze/strides
max_upload_size
id2011117
size77,610
Matthias Vogelgesang (matze)

documentation

https://docs.rs/strides

README

strides

Cargo Documentation

A command-line UI library to enhance async programs with progress bars and spinners. It is async-first, opionated, far from feature complete and absolutely not API stable. Use at your own risk.

Examples

This is a simple example that reports the status of three concurrently running futures with a customized spinner and elapsed time:

let mut group = Monitored::new(spinner::styles::DOTS_3.ticks())
    .with_spinner_style(owo_colors::Style::new().bright_purple().bold())
    .with_elapsed_time(true);

// Add three futures completing after 1, 2 and 3 seconds.
group.push(Timer::after(Duration::from_secs(1)), "one second".into());
group.push(Timer::after(Duration::from_secs(2)), "two seconds".into());
group.push(Timer::after(Duration::from_secs(3)), "three seconds".into());

future::block_on(async {
    group.for_each(|_| {}).await;
});

Go into the examples directory for more elaborate examples.

License

MIT

Commit count: 0

cargo fmt