Skip to content

Commit 0b3feac

Browse files
authored
Merge pull request #69 from Muscraft/annotate-snippets-0.10.0
Annotate snippets 0.10.0
2 parents 131a7af + 17a0d37 commit 0b3feac

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

CHANGELOG.md

+30-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,34 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased] - ReleaseDate
8-
8+
9+
## [0.10.0] - December 12, 2023
10+
11+
### Added
12+
13+
- `Renderer` is now used for displaying a `Snippet` [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/9076cbf66336e5137b47dc7a52df2999b6c82598)
14+
- `Renderer` also controls the color scheme and formatting of the snippet
15+
16+
### Changed
17+
18+
- Moved everything in the `snippet` to be in the crate root [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/a1007ddf2fc6f76e960a4fc01207228e64e9fae7)
19+
20+
### Breaking Changes
21+
22+
- `Renderer` now controls the color scheme and formatting of `Snippet`s [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/d0c65b26493d60f86a82c5919ef736b35808c23a)
23+
- Removed the `Style` and `Stylesheet` traits, as color is controlled by `Renderer` [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/4affdfb50ea0670d85e52737c082c03f89ae8ada)
24+
- Replaced [`yansi-term`](https://crates.io/crates/yansi-term) with [`anstyle`](https://crates.io/crates/anstyle) [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/dfd4e87d6f31ec50d29af26d7310cff5e66ca978)
25+
- `anstyle` is designed primarily to exist in public APIs for interoperability
26+
- `anstyle` is re-exported under `annotate_snippets::renderer`
27+
- Removed the `color` feature in favor of `Renderer::plain()` [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/dfd4e87d6f31ec50d29af26d7310cff5e66ca978)
28+
- Moved `Margin` to `renderer` module [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/79f657ea252c3c0ce55fa69894ee520f8820b4bf)
29+
- Made the `display_list` module private [#67](https://github.com/rust-lang/annotate-snippets-rs/pull/67/commits/da45f4858af3ec4c0d792ecc40225e27fdd2bac8)
30+
31+
### Compatibility
32+
33+
- Changed the edition to `2021` [#61](https://github.com/rust-lang/annotate-snippets-rs/pull/61)
34+
- Set the minimum supported Rust version to `1.70.0` [#61](https://github.com/rust-lang/annotate-snippets-rs/pull/61)
35+
936
## [0.9.2] - October 30, 2023
1037

1138
- Remove parsing of __ in title strings, fixes (#53)
@@ -46,7 +73,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4673
- Update the syntax to Rust 2018 idioms. (#4)
4774

4875
<!-- next-url -->
49-
[Unreleased]: https://github.com/rust-lang/annotate-snippets-rs/compare/0.9.2...HEAD
76+
[Unreleased]: https://github.com/rust-lang/annotate-snippets-rs/compare/0.10.0...HEAD
77+
[0.10.0]: https://github.com/rust-lang/annotate-snippets-rs/compare/0.9.2...0.10.0
5078
[0.9.2]: https://github.com/rust-lang/annotate-snippets-rs/compare/0.9.1...0.9.2
5179
[0.9.1]: https://github.com/rust-lang/annotate-snippets-rs/compare/0.9.0...0.9.1
5280
[0.9.0]: https://github.com/rust-lang/annotate-snippets-rs/compare/0.8.0...0.9.0

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "annotate-snippets"
3-
version = "0.9.2"
3+
version = "0.10.0"
44
edition = "2021"
55
rust-version = "1.70" # MSRV
66
authors = ["Zibi Braniecki <gandalf@mozilla.com>"]

0 commit comments

Comments
 (0)