I’m looking for the best way to use libraries and apps written in rust to be a part of big (multi-language) project. Suppose I have a project with its own build system (we are using OMakefile, but it does not matter), which consists of thousands of files, some of them are auto-generated. The libraries are built and used by other parts of the project. I also want to use some crates from cargo.io (and, probably, create my owns).
the problems, as I see them, are:
- how to force cargo to rebuild the crate when some static C library has been changed
- how to force (re)compilation of the crate producing a library that is used by the app written in other language (that is, how to express the fact that an app is dependent of the crate)
- is there a tool that would extract “extern fn” definitions from rust code to generate .h file to use in C, and vice versa?