Open-Source Wikis

/

uv

/

Crates

/

uv-warnings

astral-sh/uv

uv-warnings

crates/uv-warnings/ is uv's user-facing warning helper.

Purpose

tracing::warn! is for diagnostics that go to the trace log. uv-warnings is for "we want the user to see this" warnings — usually rendered with a yellow "warning:" prefix. The crate provides:

  • warn_user! — the print-once-per-process variant.
  • warn_user_once! — the print-once-per-message variant (deduplicates by formatted text).

These are used everywhere uv wants to nudge the user without blocking the operation (deprecated flags, suspicious project layouts, etc.).

See also

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

uv-warnings – uv wiki | Factory