I don't think writing your frontend in Rust instead of TypeScript or your computer vision pipeline in Java would be better at all. We rewrote our frontend in GHCJS (Haskell) at one point and it was a colossal waste of time.
If you read what I wrote you'd see that I said JavaScript/Typescript on the BACKEND is always a mistake. It is an unfortunate reality on the front end, and one that should have been replaced entirely when the web started to move towards webapps.
WASM is obviously an option these days and well, but my understanding is that it's a long way from taking over.