show-my-errors-0.1.2 has been yanked.
show-my-errors
This is a library to display simple errors in colorful, rustc-like way. It can't show multi-line errors or draw arrows between parts of code, but its interface is simple and easy to use. If you want something more complex, you probably should use annotate-snippets, which is used by rustc itself.
Basic usage
Entry point of this library is AnnotationList
. You should create it, add some errors
and then use .show_stderr()
or
.show_stdout()
with some Stylesheet
to display the message.
let mut list = new;
list
.warning?
.info?;
assert_eq!;
License
SPDX-License-Identifier: MIT OR Apache-2.0