Skip to content

chore(deps): Update Rust crate annotate-snippets to 0.12.0#831

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/annotate-snippets-0.x
Open

chore(deps): Update Rust crate annotate-snippets to 0.12.0#831
renovate[bot] wants to merge 1 commit intomainfrom
renovate/annotate-snippets-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 1, 2025

This PR contains the following updates:

Package Type Update Change
annotate-snippets dev-dependencies minor 0.11.40.12.0

Release Notes

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

v0.12.12

Compare Source

Added

v0.12.11

Compare Source

Fixed
  • Fix Unicode highlight alignment in patches #​357

v0.12.10

Compare Source

Fixed
  • Render all removed lines when multiple Patch remove lines #​353

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

Added

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

v0.11.5

Compare Source

Added
  • rustc's multiline annotation special case #​133
    • This special case happens when:
      • The start of a multiline annotation is at the start of the line disregarding any leading whitespace
      • No other multiline annotations overlap it
  • simd feature for faster folding #​146
Changed
  • Multiline annotations with matching spans get merged #​133
  • Multiple annotations on one line are no longer rendered on separate lines #​133
Fixed
  • Overlapping multiline annotations are now correctly rendered #​133
  • Origin position is now correctly calculated when an annotation starts at the beginning of the line #​154

Configuration

📅 Schedule: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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.

@codecov
Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.22%. Comparing base (61326ee) to head (53b03ff).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #831   +/-   ##
=======================================
  Coverage   48.22%   48.22%           
=======================================
  Files          31       31           
  Lines        3602     3602           
=======================================
  Hits         1737     1737           
  Misses       1865     1865           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coveralls
Copy link

coveralls commented Oct 1, 2025

Pull Request Test Coverage Report for Build 22153895131

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 48.223%

Totals Coverage Status
Change from base Build 21554071108: 0.0%
Covered Lines: 1737
Relevant Lines: 3602

💛 - Coveralls

@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from cc37aca to 7292ff7 Compare October 1, 2025 16:18
@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from 7292ff7 to 6c3f6f5 Compare October 14, 2025 18:43
@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch 3 times, most recently from 3b877e7 to c5adf61 Compare October 29, 2025 00:03
@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from c5adf61 to 8942d3b Compare November 15, 2025 22:14
@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from 8942d3b to cecfa5e Compare December 2, 2025 02:05
@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from cecfa5e to 7fb262e Compare December 31, 2025 14:02
@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch 2 times, most recently from f8e7fb2 to 00604fa Compare February 2, 2026 20:07
@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from 00604fa to 53b03ff Compare February 18, 2026 19:11
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

Comments