-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide C API #491
Comments
My preference would be do expose a C API of syntect in a third-party crate. Effectively a C facade in front of the Rust API that is maintained elsewhere. (I will close this issue as "won't fix" at a later point unless other maintainers express a desire to maintain a C API of syntect.) |
Okay, I will dig deep into the library and try to make a C wrapper of it in free time |
I realized that with patience, you can create a C-API without knowing any Rust syntax by interacting with ChatGPT for hours. Although it may not work perfectly, I have generated C-APIs for some basic functions of the syntect library. All the Rust code, C code, and even the README were generated by ChatGPT. However, it took many hours of interaction, building code, reporting errors, and giving feedback, so it's not as easy as it sounds 🙃 It would be nice if skilled engineers created a proper C-API, but there isn't one available (everyone is busy). However, anyone willing to talk to AI patiently might be able to build a prototype C-wrapper. |
That’s nice, thanks. I will try experimenting with it. |
It would be wonderful to have C-API to syntect library similar to treesitter. This will open up a gate to lot more users to use this library.
The text was updated successfully, but these errors were encountered: