How to rewrite it in Rust
We did a similar thing with a Scala -> Rust rewrite for the http://prisma.io query engine.By rewriting small components and integrating them into the existing project using Javas native interface, our small team of 5 developers were able to pull off this massive rewrite in just under a year. The resulting code base is rearchitected in a few very important ways, but mostly follows the same structure.And because we kept and evolved our old Scala based test suite, we have a very high confidence in the rewrite.When Async/.await finally landed, we could switch over very quickly, and it has been a joy to focus on benchmarks and performance over the last month. Spoiler: Rust is faster than Scala :-D