hebi_diag

Crates.iohebi_diag
lib.rshebi_diag
version0.2.0
sourcesrc
created_at2023-02-24 18:27:53.488212
updated_at2023-03-05 21:00:14.235678
descriptionDiagnostics for Hebi
homepage
repositoryhttps://github.com/jprochazk/hebi
max_upload_size
id793830
size23,824
Jan Procházka (jprochazk)

documentation

README

Diag

This crate implements error reporting for Hebi. In simple terms, it turns code + span + message into a nicely formatted error message:

error: mismatched type
> test.foo:1
| 
| let x: Foo = Bar {
|   a: 0,
|   ...
|   g: 0,
| };
| 
+ expected `Foo`, found `Bar`

It's actually completely agnostic to the target language, it operates on simple strings and spans.

There are many crates that implement something similar, for example:

And while they are all good at what they do, they all ended up having features I wouldn't use, and I wanted to keep the dependency graph as minimal as possible.

Commit count: 525

cargo fmt