1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Install progress reporting — a caller-supplied seam.
//!
//! The downloader runs a two-phase parallel fan-out (download every dist,
//! then extract every dist). It reports per-package progress through this
//! trait so a CLI can drive a progress bar while a library consumer stays
//! silent. The default [`NoProgress`] does nothing; this crate deliberately
//! depends on no rendering library (`indicatif` etc.) — that's the caller's
//! choice.
use crateDistOutcome;
/// Per-package progress callbacks fired by the downloader. Both methods have
/// no-op defaults, so an implementor overrides only the phase it cares about.
/// Called from a rayon parallel iterator, so implementations must be `Sync`
/// and cheap/non-blocking.
/// The silent default: reports nothing. Suitable for library use and for the
/// non-interactive / `--quiet` / machine-output CLI paths.
;