Add progress counter for car time downloads

Show a persistent single-line progress counter ("Downloading track times
for car 1234/7589") while fetch_times downloads timing data. A ProgressBar
from indicatif 0.17 is sized to the car list, cloned into each spawned
download task, and incremented after fetch_car completes so it tracks
completions rather than starts; Arc internals make this safe under the
concurrent semaphore. The bar is cleared via finish_and_clear() before
the error/warning logging loop so retry messages don't garble the line,
and indicatif renders nothing when stderr is not a TTY.

Also apply pending rustfmt reformatting to src/capture/windows.rs
(formatting only, no logic changes).
This commit is contained in:
Jan-Peter von Hunnius 2026-08-22 10:53:17 +02:00
parent f829ad52a4
commit cc73fe62fc
4 changed files with 136 additions and 74 deletions

View file

@ -29,6 +29,7 @@ thiserror = "2"
dashmap = "6"
log = "0.4"
env_logger = { version = "0.11", optional = true }
indicatif = "0.17"
[target.'cfg(windows)'.dependencies]
hudsucker = "0.25"