#progress-bar #progress #cli

kyuri

A very simple progress display library

15 releases

0.2.5 Feb 1, 2025
0.2.4 Jan 30, 2025
0.1.8 Jan 18, 2025

#126 in Command-line interface

Download history 746/week @ 2025-01-14 282/week @ 2025-01-21 345/week @ 2025-01-28 56/week @ 2025-02-04

1,429 downloads per month
Used in 2 crates

MIT license

45KB
927 lines

kyuri

A progress display library specifically designed for my mirroring softwares (tsumugu & yukina).

Uses some code from indicatif (MIT).

Docs: docs.rs/kyuri

The API is not stable yet.

Why?

It could output a progress indicator both when printing to terminal and (especially when) writing to file, with minimal distraction.

And no other dependencies when terminal support is unnecessary. Custom features:

  • console_width feature: auto-detect terminal width. Otherwise, it's fixed at 80 when in ANSI mode.
  • unicode feature: calculate the width of Unicode characters correctly. Unnecessary when not in ANSI mode.
  • full: console_width + unicode.

If you need a progress bar or spinner with rich and fancy features, use indicatif instead.

Examples

  • Simple example

    progress
    cargo run --example progress
    cargo run --example progress > file
    
  • 2 threads example (thread, download)

    thread
    cargo run --example thread
    cargo run --example thread > file
    

    or this with a different pattern:

    download
    cargo run --example download
    cargo run --example download > file
    
  • Progress bar example

    bar
    cargo run --example bar
    cargo run --example bar > file
    
  • tracing integration example

    tracing
    cargo run --example tracing
    cargo run --example tracing > file
    

Cucumber from Mutsumi

(Taken from BanG Dream! It's MyGO!!!!! episode 6.)

Dependencies

~0–570KB