Use ~~miette~~ annotate-snippets for reporting errors from invalid `Cargo.toml`s
Opened this issue · 3 comments
eopb commented
https://docs.rs/miette/latest/miette/
https://github.com/rust-lang/annotate-snippets-rs
toml_edit
should be able to provide spans we can use: https://docs.rs/toml_edit/latest/toml_edit/?search=span
eopb commented
We don't do much manual parsing anymore, mostly relying on cargo metadata
so there's not much point in doing this
epage commented
Do you want to match cargo and use annotate-snippets
?
eopb commented
That's better 👍
I've updated the issue description to suggest annotate-snippets