Fancy extension for std::error::Error with pretty, detailed diagnostic printing.
The long-awaited 6.0 release of miette
is here, with TONS of goodies, not
least of which is syntax highlighting support!
It also comes with a few breaking changes so make sure to check below and update your code as needed!
miette-derive
be able to be turned off (#304) (c7ba5b7e)textwrap
options (#321) (fd77257c)wrap_lines: bool
option allowing wrapping be disabled entirely (#328) (b0744462)source_code()
impl.usize
for length (#265) (fad0e76a)
SourceSpan
's length type to usize
.NamedSource
type generic over its Source
type, instead of boxing it.std::io::IsTerminal
(e5c7ae46)std::sync::OnceLock
(4c48584f)
cargo test
with default features. (#294) (1f448e47)is_terminal
sys call from MietteHandlerOpts::build
(#325) (f1dc89c0)NamedResult
to where it is used (#309) (d37ada87)While this is a semver-minor release, there's potential for it to have knock-on effects due to the syn2 upgrade. There's been issues as this new version propagates between syn/thiserror versions (for example, see a similar change in eyre).
The other thing of note is that backtrace printing is now much better! Try the hook and see for yourself!
atty
for is-terminal
(#229) (443d240f)Ord
for Severity
(#240) (ed486c95)atty
for is-terminal
(#229) (443d240f)Ord
for Severity
(#240) (ed486c95)