HTML5 offers form field validation support built into the HTML form input tags that should greatly reduce the need for JavaScript validation code. In this post, I look at some examples of this.
rust-wasm-validator is a project showing how Rust validation logic can be compiled to WebAssembly and called from JavaScript. Validation logic is implemented in Rust. Rust code is compiled to WASM.