GSoC 2020 Building binary addons in Rust
#9
(2021-03-09, 10:22)RockerC Wrote: Is it possible to compile a Rust library as a C library? Quick search on google make it sound like that should be possible, example: https://docs.rust-embedded.org/book/inte...ith-c.html

If so then you might want to check out this other thread about a (PVR) binary addon written in the Go Programming Language for Kodi -> https://forum.kodi.tv/showthread.php?tid=355978

@botallen coded "Go Lang Demo PVR client add-on" as a proof-of-concept using a Go Lang library compiled as a C shared library (library.so/library.dll) and was that way able to make Kodi use it.

Should be mentioned that thread @botallen wrote that he has plans on updating that proof-of-concept addon to use Kodi's new pure C API/ABI which binary addons now use in Kodi v19.

Kodi now features pure C APIs for binary addons which can enable interoperability between different languages as long you can compile your other language code/libraries into C libraries

Thanks!
The part I'm mostly worried about is integrating it into the Kodi building process, because it wouldn't be an addon but something used in the Kodi decoding code.
So it would probably have to be built along with the other current dependencies such as ffmpeg, but I'm not good with cmake.
Reply


Messages In This Thread
RE: GSoC 2020 Building binary addons in Rust - by quietvoid - 2021-03-09, 16:24
Logout Mark Read Team Forum Stats Members Help
GSoC 2020 Building binary addons in Rust0