yumy

a diagnostics rendering crate. yumy aims to: - be easy to use - be independent (i.e. to not require deep integration) - be customizable enough

example output

the diagnostic below is lorem ipsum.

example diagnostic

here's the same diagnostic in compact mode:

example diagnostic in compact mode

and here's the code for this diagnostic:

```rust let diagnostic = Diagnostic::new(format!("{}: you did something wrong", "error".red())) .withsource(Source::new(&src, None)) .withlabel(Label::styled( SourceSpan::new(154, 580), "this is wrong!".brightred(), Style::new().brightred(), )) .withlabel(Label::styled( SourceSpan::new(337, 362), "thats a little sus".brightred(), Style::new().brightred(), )) .withlabel(Label::new( SourceSpan::new(421, 500), "you almost got this part right though".yellow(), )) .withfootnote(Footnote::new(format!( "{}: maybe try doing it differently", "help".yellow() ))) .withfootnote(Footnote::new(format!( "{}: this message doesn't actually help you :)", "note".bright_green() )));

diagnostic.eprint(&Config::default()).unwrap(); ```