Show HN: Simple live calculator in Tree-sitter and cranelift JIT
github.com
github.com
The error.rs error type definitions and the pub(crate) directives were both new to me. It’s crazy to me just how much rust continues to evolve well after the 1.0 release. Error handling in particular seems to be a point of confusion; I’ve seen (and bookmarked) many posts on HN about it. The thiserror crate was new to me, and seems really nice.
Miette is responsible for actually rendering the error messages you see- which was new to me, but have always appreciated how that style of error looks and is so much more helpful than "[1:23]"