I have started it more than once but gave up on the sheer complexity involved as many times but I really would love to have attributes to auto generate a C ABI from a Rust API alongside headers and then high level python and C++ bindings to it. With the recent improvements to wasm-bindgen I looked into if stuff can be repurposed there but it seems very custom crafted sadly.

If someone is interested in that as well, maybe there are some ways to join forces.

Are you aware of cbindgen[0]? It's not exactly what you want, but it's certainly far closer than wasm-bindgen is.

[0]: https://github.com/eqrion/cbindgen