You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Phase 1d: AutoShrinkEntry registry + green reporting one-liner #498
Part of #493 Phase 1. Lands the per-platform shrinker registry type and the green auto shrinking: … one-liner reporter — both with empty data so the user-facing behavior is silent on every platform until subsequent phases populate the registry.
Define a per-platform registry function registry_for(platform: Platform) -> &'static [AutoShrinkEntry] that returns &[] for every platform. Subsequent phases populate this per-platform.
Implement reporting::print_auto_shrinking_line(entries: &[AutoShrinkEntry]) in crates/fbuild-build/src/shrink/reporting.rs:
If entries.is_empty(): print nothing.
Otherwise: print a single line in green (via owo-colors) of the form auto shrinking: <sym1>, <sym2>, … — the prefix auto shrinking: is bold-green, the comma-separated symbol list is plain green. owo-colors auto-disables on non-tty and respects NO_COLOR, so no extra plumbing is needed.
Activity
feat(shrink): per-platform registry + green reporting one-liner (#498,…