Clorinde does this. It lets you write raw sql (with keyword arguments) and generate strongly typed Rust API (that deals with things like Option for nullable columns, etc)

https://github.com/halcyonnouveau/clorinde/?tab=readme-ov-fi...