cosmic-text icon indicating copy to clipboard operation
cosmic-text copied to clipboard

Expose public C/C++ API

Open Theramar opened this issue 10 months ago • 3 comments

cbindgen cxx

Theramar avatar Aug 31 '23 21:08 Theramar

It is not my desire at this time to provide a C interface for cosmic-text. If you can do the work, though, I would potentially merge it.

jackpot51 avatar Sep 01 '23 00:09 jackpot51

At the moment cosmic-text is pretty unstable and exposes a lot of the implementation details of the underlying crates. If it were me I would wait for greater stability before writing a C API

notgull avatar Sep 01 '23 01:09 notgull

Is there any updates on this? I would love to use this project in my game engine, but I am not using Rust so I would love to have a C API for this. I am roughly familiar with Rust and would be happy to contribute, but I'm not sure where I would start.

I assume a PR which added this would add the header generation stuff to build.rs and make any adjustments to the rest of the codebase to make the API interop-friendly. Is "greater API stability" something that will be achieved any time in the near future, or is it more of a long-term goal?

Tacodiva avatar Nov 14 '23 23:11 Tacodiva