I can highly recommend Rust for this. The same Rust engine powering web app (WASM + React), iOS (SwiftUI), Android (Kotlin Compose) and desktop (Tauri).
Ah WASM I don’t really know. I know they are actively working on it[1], but I could not tell you where they’re at exactly, especially compared to bindgen. I wanted to try some time ago, but it really was not ready, and now I don’t have the time anymore (: