3 ms·
why couldn't they just compile with Rust to a .dll/.dylib/.so and then do some dlopen / dlsym FFI? :P
by MuffinFlavored 3y ago
why couldn't they just compile with Rust to a .dll/.dylib/.so and then do some dlopen / dlsym FFI? :P
- rcme 3y agoIt’s too hard to support every possible target that way.
- Sean-Der 3y agoI tried to do this with OBS. The code worked really well. It was so stable and performant. Life is significantly better not debugging SEGV. However it puts too much burden on the maintainers. So much work goes into packaging etc… I don’t have much hope for the ‘Rust as a submodule in a C/C++ project’ story :(
- Svenstaro 3y ago389-ds does the latter more or less as far as I can tell.