I have two libraries (with C compatible interface) written in Rust that I'm trying to integrate into an iOS app.
When integrating the two .a files in the same project, I get errors because symbols from the Rust standard library are now present multiple times:
duplicate symbol _rust_eh_personality in:
/Users/x/Development/ios-client/Y/Rust/lib1_ffi.a(lib1_ffi.0.o)
/Users/x/Development/ios-client/Y/Rust/lib2_ffi.a(lib2_ffi.0.o)
...
How can this be solved? Could the Rust symbols be extracted into a separate library? Or can the symbols be namespaced?