The code was using Zig before, not JS.

Ah fair point. I don't have a sense of which of those are more verbose.

Zig is, typically. And yet here, the rust rewrite is around 60% more lines of code.