Open TheZoq2 opened 3 years ago
Our of curiosity, have you tried using multiple bridge modules? It does require a little more config but it would accomplish a similar thing. You can also pub use ffi::*
so that it is almost like the module is native rust.
If you are not aware reusing existing binding types and the bridges
fn might be helpful.
As my project grows, the
ffi
namespace is becoming quite bloated and hard to navigate around, therefore, it would be nice if it was possible to support addingmod
to theffi
functions on the rust side, something likeAs far as I can tell, this isn't possible, I get a compiler error when I try, but I might also be missing something
If it's something desired and not too difficult to implement, I wouldn't mind giving it a shot if you can give me some pointers for where to look.
And of course, thanks for making this amazing library, being able to incrementally migrate my work project to rust has been a huge improvement for me!