I don't know if there is a faster way to do this; but the change -> compile -> test -> change -> compile -> test loop for Rust feels so slow compared to TS and PHP.
That's just the trade-off for any compiled language. It takes time to compile, but once it's compiled, it runs faster than an interpreted language. Generally speaking.