8 ms·
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 https
by Sean1708 8y ago
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 https://github.com/eqrion/cbindgen
- detaro 8y agoHe's published some tooling using it: https://blog.sentry.io/2017/11/14/evolving-our-rust-with-milksnake https://blog.sentry.io/2017/11/14/evolving-our-rust-with-mil...
- the_mitsuhiko 8y agoWe are using that atm but it requires manually writing a cabi.
- rhodysurf 8y agoIt still requires you expose C api, instead of it being generated automatically with proc macros or something.