m3u icon indicating copy to clipboard operation
m3u copied to clipboard

Lib should be callable from other programming languages

Open StefanoD opened this issue 8 years ago • 3 comments

Otherwise this lib will stay a niche.

StefanoD avatar Jan 02 '17 21:01 StefanoD

Hey thanks for the suggestion!

By this do you mean the API should only use extern "C" fns and #[repr(C)] structs? Do you have examples of other libs similar to this that go out of their way to also provide an FFI friendly API? Or perhaps a simple example of how you would do things differently?

I haven't given much consideration to the library's usefulness outside of rust, however I wouldn't mind adjusting the API to make it easier for users to do so as long as it doesn't require sacrificing rusty-ness.

mitchmindtree avatar Jan 05 '17 06:01 mitchmindtree

Yes, I mean FFI like you said. I'm not very familiar with Rust, yet. So I can't deliver examples you couldn't find in the book.

StefanoD avatar Jan 05 '17 08:01 StefanoD

I'm going to publish the crate as 1.0.0 for now, but may add an ffi module in the future if I get the time.

mitchmindtree avatar Jan 06 '17 02:01 mitchmindtree