Kat Marchán 🐈 · @zkat
5927 followers · 11452 posts · Server toot.cat

holy dang. I keep running into in the weirdest places. It keeps spreading!

Today: I noticed miette error messages in a new web framework while reading their blog post: lpalmieri.com/posts/pavex-prog

And then while browsing through the dependents list for miette after that, I found that the cargo tooling for AWS Lambda is apparently using it, too: crates.io/crates/cargo-lambda/

huh. people are using my thing?

#miette #rust #rustlang

Last updated 2 years ago

Kat Marchán 🐈 · @zkat
5315 followers · 9634 posts · Server toot.cat

omg it works! My engine works beautifully!

So to summarize:

a > b 👉🏻 any child "b" of node "a"
a >> b 👉🏻 any descendant "b" of node "a"
a + b 👉🏻 any "b" that immediately follows an "a" node under the same parent
a ++ b 👉🏻 any "b" anywhere after "a" under the same parent.

I've also got multiple parallel selectors working (with the `,` operator, just like CSS), and some magic around the toplevel `scope()` selector that lets you do things like `scope() > a` to make sure you're selecting only direct children of the *current* document/node you're querying from.

Whew. It's been a couple of days but this was really fun! 💯 would parse again.

Oh and it has all the nice error reporting you would expect from a tool that uses 😉

#kdl #kql #miette #rust #rustlang

Last updated 2 years ago

Kat Marchán 🐈 · @zkat
5321 followers · 9469 posts · Server toot.cat

new release just dropped, lads: github.com/zkat/miette/release

Technically a semver-minor but mostly just fixing a panic and some thorns on the side. Nothing too big.

#miette #rust #rustlanguage

Last updated 2 years ago

Kat Marchán 🐈 · @zkat
4629 followers · 9246 posts · Server toot.cat

I'm still buzzing from spending a good chunk of time this weekend just poking at a project that I thought was going to be dead forever. Sometimes it's nice to just hack on something for fun with no pressure involved.

To top it all off, I spent literally all of that time just *tidying* the codebase up, moving error handling over to , moving some other stuff to external libraries, updating dependencies, and just generally modernizing things. Didn't even work on any new features yet lol.

Incidentally, I was pleased to find out that Cargo 1.64.0 (the most recent version!) finally shipped workspace dependency versions, so you can define the dependency version once, in your workspace, and then use `mydep = { workspace = true }` in your crates, which is SUPER HANDY and I had been hoping for this so bad.

#rust #miette

Last updated 2 years ago