MediaInfoLib icon indicating copy to clipboard operation
MediaInfoLib copied to clipboard

[Feature request] rust language suport

Open mash-graz opened this issue 6 years ago • 5 comments

i really would like to see some working support for the rust programming language of this very useful library.

there is only one rather outdated manual written FFI port available at github, which doesn't seem to work at all (at least all test cases and examples report all sorts of errors on my debian linux machine) and i also worked on a bindgen based solution myself, but i didn't succeed, most likely because of rustc-C++ incompatibilities...

maybe one of the maintainers of this project, which is more familiar with its internals of the code base, may have more luck.

mash-graz avatar Mar 11 '20 00:03 mash-graz

Made a simple working example: https://github.com/cjee21/MediaInfoLib/tree/Rust

cjee21 avatar Oct 06 '25 18:10 cjee21

Made a simple working example

PR please: ).

JeromeMartinez avatar Oct 06 '25 19:10 JeromeMartinez

PR please: ).

I need to expand it and test some more before PR. It's quite useless at the moment. Is Contrib folder the right place for it? It's an entire Rust Cargo project.

cjee21 avatar Oct 06 '25 19:10 cjee21

Is Contrib folder the right place for it? It's an entire Rust Cargo project.

I would be interested in having it officially supported if you are motivated to do the initial support, so files in: https://github.com/MediaArea/MediaInfoLib/tree/master/Source/MediaInfoDLL https://github.com/MediaArea/MediaInfoLib/tree/master/Source/Example https://github.com/MediaArea/MediaInfoLib/tree/master/Project

JeromeMartinez avatar Oct 06 '25 20:10 JeromeMartinez

(the example file should have the same flow as in https://github.com/MediaArea/MediaInfoLib/blob/master/Source/Example/HowToUse_Dll.cpp )

JeromeMartinez avatar Oct 06 '25 20:10 JeromeMartinez