greyblake / whatlang-rs

Natural language detection library for Rust. Try demo online: https://whatlang.org/
https://whatlang.org/
MIT License
966 stars 108 forks source link

C bindings #8

Closed arrufat closed 7 years ago

arrufat commented 7 years ago

Thank you for this fast and easy to use library. It would be even nicer if we could use it in non-Rust applications. Have you thought about providing C bindings? Thanks in advance!

for reference: https://github.com/kaegi/netinfo https://github.com/kaegi/netinfo-ffi

greyblake commented 7 years ago

Hi! Thanks for the links and sorry for delayed reply. I am personally not interested in this, and I don't really have good C experience (I know only basics, as any other programmer). If you are interested in this and have time to implemented, I would appreciate a pull request :)

greyblake commented 7 years ago

@arrufat I've started whatlang-ffi project.

It's still in development, but minimal working example you can find here: https://github.com/greyblake/whatlang-ffi/blob/master/examples/example.c