4 ms·
I am building an open source desktop app in Tauri [1]. One of the issues I encountered was having to duplicate and sync types between the TypeScript frontend an
by haideralshamma 11mo ago
I am building an open source desktop app in Tauri [1]. One of the issues I encountered was having to duplicate and sync types between the TypeScript frontend and Rust. On the other hand, Rust proved to be a great language with a sizeable ecosystem for building application backends.
[1]: https://github.com/haideralsh/prompt-lab https://github.com/haideralsh/prompt-lab
- bpev 11mo agofwiw, I think the most comprehensive cross-typing work done here has been specta: https://github.com/specta-rs/tauri-specta https://github.com/specta-rs/tauri-specta
- sipjca 11mo agoyes, it works, I would recommend it even if it's a bit awkward at times
- c-hendricks 11mo agoI settled on graphql, that generates my types for both Rust and TypeScript.