Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 21, 2025

This PR contains the following updates:

Package Type Update Change
annotate-snippets dependencies minor 0.11 -> 0.12

Release Notes

rust-lang/annotate-snippets-rs (annotate-snippets)

v0.12.9

Compare Source

Fixes
  • Prefer exact prefix/suffix matches when trimming replacements #​345

v0.12.8

Compare Source

Fixes
  • No longer panic when annotating leading whitespace #​334

v0.12.7

Compare Source

Fixes
  • Correctly calculate annotation offsets when trimming unicode characters #​331

v0.12.6

Compare Source

Changed
  • Upgraded unicode-width to 0.2.2 #​326
    • This update adds support for Unicode 16 and 17, and can affect character width calculations
  • Use straight arrows for standalone Origin #​327
Fixes
  • Correctly calculate line numbers for trimmed multi-line suggestions #​321
  • Respect .fold(false) when set on suggestions #​322
  • Properly calculate the max line number width for suggestions #​323
  • Show full line when Patch span points to line end #​324

v0.12.5

Compare Source

Fixes
  • Highlight the correct span for duplicated diff lines #​318

v0.12.4

Compare Source

Fixes
  • Removed implicit padding with report starting with secondary title #​310

v0.12.3

Compare Source

Features
  • Add Title::element for less boilerplate
  • Add renderer::DEFAULT_*_STYLE to expose default styles
Documentation
  • Clarify role of Renderer::<style> methods

v0.12.2

Compare Source

Fixes
  • Duplicate multi-line annotations get treated like the are distinct #​293
  • Allow passing 0 to Snippet::line_start #​294

v0.12.1

Compare Source

Fixes
  • Correctly calculate line number width when feature simd is enabled #​286
  • Close the "code window" when the last line of a Snippet has no annotations and nothing comes after it #​288

v0.12.0

Compare Source

Migration

Note that the top-level type changed from Message to Report.
Message is now a single block of text within a Report.

  • Replace Message::footer with either
    • adding a Message to a Group
    • starting a new Group
  • Replace Level::<Variant> with Level::<VARIANT>, e.g. Level::Error -> Level::ERROR
  • Instead of creating Snippets on a Message (the type returned by Level::title), add them to the Group that is created with the Title
  • Snippet::origin has been renamed to Snippet::path
  • Instead of creating an Annotation from a Level, create them from an AnnotationKind
    • AnnotationKind::Primary will automatically match the Level of the Group
    • All others existing annotations should likely be AnnotationKind::Context
  • Level::title has been replaced with Level::primary_level (for first Group) and Level::secondary_level (subsequent Groups)
  • Message::id has moved to Title::id
  • Renamed Renderer::line_no to Renderer::line_num
  • Add snippet.fold(false) if unspecified, removing snippet.fold(true) if specified
Features
  • Added unicode decor support, see renderer::DecorStyle
  • Created [Group] to indicate what all is included between the unicode begin and end decor
  • Added Level::secondary_title to allow for custom ANSI escape code styling to be applied to those Titles
  • Added AnnotationKind::Visible to force spans to be visible within a Snippet, despite code folding, without any visible marker
  • Added Origin for referencing code without the source
  • Added Group::with_level to allow Snippets without a Title
  • Added Level::no_name to hide the level name
  • Added Level::with_name to override what is rendered for that level
  • Added Title::id_url to turn Title::id into a link
  • Added Patch for displaying changes to code
Fixes
  • Switched strings to Cow<str> to allow for easier management of owned data
  • Snippet::path now accepts None
  • Annotation::label now accepts None
  • Various rendering fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) November 21, 2025 05:48
@renovate renovate bot merged commit 6d2163b into main Nov 21, 2025
8 of 25 checks passed
@renovate renovate bot deleted the renovate/annotate-snippets-0.x branch November 21, 2025 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant