Skip to main content

Module progress

Module progress 

Source
Expand description

#3100: per-context build progress, printed to stderr.

The pipeline reports each context through a ProgressSink (crate::project::CompileOptions::progress); this is the one printer the verbs that build share, so build, dev and deploy read the same.

The lines appear only when stderr is a terminal and --quiet is not given, so a script or CI log that captures the output sees exactly what it did before.

Functions§

line
One event’s line: a right-aligned verb, then the context, as cargo does.
set_quiet
--quiet: turn the per-context lines off for this process.
terminal_sink
The printer for this process, or None when nothing should print: stderr is not a terminal, or --quiet was given.