#yumy: diagnostics rendering crate

25 messages · Page 1 of 1 (latest)

restive pond
zealous terrace
#

I feel like there’s a new one of these every week lol

#

we’ve got the classic annotate-snippets, ariadne, miette, probably a lot more…

restive pond
#

in all seriousness, though, i wanted something a little simpler and less "dictating" (i.e. some crates have built-in message types like error, warning, etc - i tried to make mine agnostic)

#

also, ariadne looked awesome but used way too much space for me - so i aimed for a "ariadne but compact" look

#

and at the end of the day i also just wanted to write a library for the fun of it. so thats what i did

late siren
#

Seems cool. Also, i think it would be better to re-license the project under dual MIT/Apache 2.0 before it's too late

barren jackal
#

why is your source span u32..u32?

barren jackal
#

so ive tried to use your crate

#

and ive found a few issues

#

firstly, it panics on a span of n..n+1

#

secondly, compact mode line numbers are one off

barren jackal
#

i prefer the api of this crate to ariadne

restive pond
# barren jackal why is your source span u32..u32?

just to save some space. i don't think anyone is gonna be using it for text larger than 4gb - at least that's not a use case i think is worth supporting. as a matter of fact, it's actually NonMaxU32..u32, so that Option<Span> is still just 8 bytes!

restive pond
restive pond
restive pond
#

it definitely has some bugs and i've been planning some internal refactoring for a while now

#

i just haven't found the time for it, been working on other projects

#

but if you're thinking about using it, i could try and make it happen sooner :)

#

also, next time ping me!

barren jackal
barren jackal
#

it alsod oesnt support multiple labels on the same line