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.
\r\n
are now correctly handled #131Debug
#119fold
to use rustc's logic: always show first and last line of folded section and detect if its worth foldingfold
ing the start of a source
, don't show anything, like we do for the end of the source
Annotation
sAnnotationType
to Level
#94SourceAnnotation
to Annotation
#94Snippet
to Message
#94Slice
to Snippet
#94Message
, Snippet
, Annotation
and Level
can only be built with a builder pattern #91 and #94Annotation
labels are now optional #94Annotation
now takes in Range<usize>
instead of (usize, usize)
#90Margin
is now an internal detail, only term_width
is exposed #105footer
was generalized to be a Message
#98term_width
was added to Renderer
to control the rendering width #105Margin
s are now calculated per Snippet
, rather than for the entire Message
#105Annotation
s can be created without labelsfooter
was expanded to allow annotating sources by accepting Message
#98testing-colors
feature to remove platform-specific colors when testing #821.73.0
#71Renderer
is now used for displaying a Snippet
#67Renderer
also controls the color scheme and formatting of the snippetsnippet
to be in the crate root #67Renderer
now controls the color scheme and formatting of Snippet
s #67Style
and Stylesheet
traits, as color is controlled by Renderer
#67yansi-term
with anstyle
#67anstyle
is designed primarily to exist in public APIs for interoperabilityanstyle
is re-exported under annotate_snippets::renderer
color
feature in favor of Renderer::plain()
#67Margin
to renderer
module #67display_list
module private #67ansi_term
with yansi-term
for improved performance. (#30)Snippet
and Slice
to work on borrowed slices, rather than Strings. (#32)\r\n
end of lines. (#29)fmt::Display
(#27)PartialEq
for AnnotationType
(#19)ansi_term
to 0.12.