Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate annotate-snippets to 0.11 #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Feb 21, 2024

This PR contains the following updates:

Package Type Update Change
annotate-snippets dev-dependencies minor 0.9 -> 0.11

Release Notes

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

v0.11.4

Compare Source

Fixes
  • Annotations for \r\n are now correctly handled #​131

v0.11.3

Compare Source

Fixes
  • Dropped MSRV to 1.65

v0.11.2

Compare Source

Added
  • All public types now implement Debug #​119

v0.11.1

Compare Source

Fixes
  • Switch fold to use rustc's logic: always show first and last line of folded section and detect if its worth folding
  • When folding the start of a source, don't show anything, like we do for the end of the source
  • Render an underline for an empty span on Annotations

v0.11.0

Compare Source

Breaking Changes
  • Switched from char spans to byte spans #​90
  • Renamed AnnotationType to Level #​94
  • Renamed SourceAnnotation to Annotation #​94
  • Renamed Snippet to Message #​94
  • Renamed Slice to Snippet #​94
  • Message, Snippet, Annotation and Level can only be built with a builder pattern #​91 and #​94
  • Annotation labels are now optional #​94
  • Annotation now takes in Range<usize> instead of (usize, usize) #​90
  • Margin is now an internal detail, only term_width is exposed #​105
  • footer was generalized to be a Message #​98
Added
  • term_width was added to Renderer to control the rendering width #​105
    • defaults to 140 when not set
Fixed
  • Margins are now calculated per Snippet, rather than for the entire Message #​105
  • Annotations can be created without labels
Features
  • footer was expanded to allow annotating sources by accepting Message #​98

v0.10.2

Compare Source

Added
  • Added testing-colors feature to remove platform-specific colors when testing
    #​82

v0.10.1

Compare Source

Fixed
  • Match rustc's colors #​73
  • Allow highlighting one past the end of source #​74
Compatibility
  • Set the minimum supported Rust version to 1.73.0 #​71

v0.10.0

Compare Source

Added
  • Renderer is now used for displaying a Snippet #​67
    • Renderer also controls the color scheme and formatting of the snippet
Changed
  • Moved everything in the snippet to be in the crate root #​67
Breaking Changes
  • Renderer now controls the color scheme and formatting of Snippets #​67
  • Removed the Style and Stylesheet traits, as color is controlled by Renderer #​67
  • Replaced yansi-term with anstyle #​67
    • anstyle is designed primarily to exist in public APIs for interoperability
    • anstyle is re-exported under annotate_snippets::renderer
  • Removed the color feature in favor of Renderer::plain() #​67
  • Moved Margin to renderer module #​67
  • Made the display_list module private #​67
Compatibility
  • Changed the edition to 2021 #​61
  • Set the minimum supported Rust version to 1.70.0 #​61

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from e21f6bc to 94c513e Compare March 16, 2024 17:46
@renovate renovate bot changed the title Update Rust crate annotate-snippets to 0.10 Update Rust crate annotate-snippets to 0.11 Mar 16, 2024
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.

0 participants