All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased - ReleaseDate
0.10.1 - 2024-01-04
- Set the minimum supported Rust version to
1.73.0
#71
0.10.0 - December 12, 2023
Renderer
is now used for displaying aSnippet
#67Renderer
also controls the color scheme and formatting of the snippet
- Moved everything in the
snippet
to be in the crate root #67
Renderer
now controls the color scheme and formatting ofSnippet
s #67- Removed the
Style
andStylesheet
traits, as color is controlled byRenderer
#67 - Replaced
yansi-term
withanstyle
#67anstyle
is designed primarily to exist in public APIs for interoperabilityanstyle
is re-exported underannotate_snippets::renderer
- Removed the
color
feature in favor ofRenderer::plain()
#67 - Moved
Margin
torenderer
module #67 - Made the
display_list
module private #67
0.9.2 - October 30, 2023
- Remove parsing of __ in title strings, fixes (#53)
- Origin line number is not correct when using a slice with fold: true (#52)
0.9.1 - September 4, 2021
- Fix character split when strip code. (#37)
- Fix off by one error in multiline highlighting. (#42)
- Fix display of annotation for double width characters. (#46)
0.9.0 - June 28, 2020
- Add strip code to the left and right of long lines. (#36)
0.8.0 - April 14, 2020
- Replace
ansi_term
withyansi-term
for improved performance. (#30) - Turn
Snippet
andSlice
to work on borrowed slices, rather than Strings. (#32) - Fix
\r\n
end of lines. (#29)
0.7.0 - March 30, 2020
- Refactor API to use
fmt::Display
(#27) - Fix SourceAnnotation range (#27)
- Fix column numbers (#22)
- Derive
PartialEq
forAnnotationType
(#19) - Update
ansi_term
to 0.12.
0.6.1 - July 23, 2019
- Fix too many anonymized line numbers (#5)
0.6.0 - June 26, 2019
- Add an option to anonymize line numbers (#3)
- Transition the crate to rust-lang org.
- Update the syntax to Rust 2018 idioms. (#4)