reitermarkus / cmacro-rs

A C macro parser, evaluator and code generator.
2 stars 3 forks source link

Update Rust crate annotate-snippets to 0.11 #5

Open renovate[bot] opened 9 months ago

renovate[bot] commented 9 months ago

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`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0114---2024-06-15) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.11.3...0.11.4) ##### Fixes - Annotations for `\r\n` are now correctly handled [#​131](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/131) ### [`v0.11.3`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0113---2024-06-06) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.11.2...0.11.3) ##### Fixes - Dropped MSRV to 1.65 ### [`v0.11.2`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0112---2024-04-27) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.11.1...0.11.2) ##### Added - All public types now implement `Debug` [#​119](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/119) ### [`v0.11.1`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0111---2024-03-21) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.11.0...0.11.1) ##### Fixes - Switch `fold` to use rustc's logic: always show first and last line of folded section and detect if its worth folding - When `fold`ing 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 `Annotation`s ### [`v0.11.0`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0110---2024-03-15) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.10.2...0.11.0) ##### Breaking Changes - Switched from char spans to byte spans [#​90](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/90/commits/b65b8cabcd34da9fed88490a7a1cd8085777706a) - Renamed `AnnotationType` to `Level` [#​94](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/94/commits/b49f9471d920c7f561fa61970039b0ba44e448ac) - Renamed `SourceAnnotation` to `Annotation` [#​94](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/94/commits/bbf9c5fe27e83652433151cbfc7d6cafc02a8c47) - Renamed `Snippet` to `Message` [#​94](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/94/commits/105da760b6e1bd4cfce4c642ac679ecf6011f511) - Renamed `Slice` to `Snippet` [#​94](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/94/commits/1c18950300cf8b93d92d89e9797ed0bae02c0a37) - `Message`, `Snippet`, `Annotation` and `Level` can only be built with a builder pattern [#​91](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/91) and [#​94](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/94) - `Annotation` labels are now optional [#​94](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/94/commits/c821084068a1acd2688b6c8d0b3423e143d359e2) - `Annotation` now takes in `Range` instead of `(usize, usize)` [#​90](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/90/commits/c3bd0c3a63f983f5f2b4793a099972b1f6e97a9f) - `Margin` is now an internal detail, only `term_width` is exposed [#​105](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/105) - `footer` was generalized to be a `Message` [#​98](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/98) ##### Added - `term_width` was added to `Renderer` to control the rendering width [#​105](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/105) - defaults to 140 when not set ##### Fixed - `Margin`s are now calculated per `Snippet`, rather than for the entire `Message` [#​105](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/105) - `Annotation`s can be created without labels ##### Features - `footer` was expanded to allow annotating sources by accepting `Message` [#​98](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/98) ### [`v0.10.2`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0102---2024-02-29) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.10.1...0.10.2) ##### Added - Added `testing-colors` feature to remove platform-specific colors when testing [#​82](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/82) ### [`v0.10.1`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0101---2024-01-04) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.10.0...0.10.1) ##### Fixed - Match `rustc`'s colors [#​73](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/73) - Allow highlighting one past the end of `source` [#​74](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/74) ##### Compatibility - Set the minimum supported Rust version to `1.73.0` [#​71](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/71) ### [`v0.10.0`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#0100---December-12-2023) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.9.2...0.10.0) ##### Added - `Renderer` is now used for displaying a `Snippet` [#​67](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/9076cbf66336e5137b47dc7a52df2999b6c82598) - `Renderer` also controls the color scheme and formatting of the snippet ##### Changed - Moved everything in the `snippet` to be in the crate root [#​67](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/a1007ddf2fc6f76e960a4fc01207228e64e9fae7) ##### Breaking Changes - `Renderer` now controls the color scheme and formatting of `Snippet`s [#​67](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/d0c65b26493d60f86a82c5919ef736b35808c23a) - Removed the `Style` and `Stylesheet` traits, as color is controlled by `Renderer` [#​67](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/4affdfb50ea0670d85e52737c082c03f89ae8ada) - Replaced [`yansi-term`](https://crates.io/crates/yansi-term) with [`anstyle`](https://crates.io/crates/anstyle) [#​67](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/dfd4e87d6f31ec50d29af26d7310cff5e66ca978) - `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](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/dfd4e87d6f31ec50d29af26d7310cff5e66ca978) - Moved `Margin` to `renderer` module [#​67](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/79f657ea252c3c0ce55fa69894ee520f8820b4bf) - Made the `display_list` module private [#​67](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/67/commits/da45f4858af3ec4c0d792ecc40225e27fdd2bac8) ##### Compatibility - Changed the edition to `2021` [#​61](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/61) - Set the minimum supported Rust version to `1.70.0` [#​61](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/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.



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