Is it possible to link a static library to a C library and not link the binary against the C library

Viewed 44

I am currently writing a program in Rust that requires me to tap into system APIs that are not Rust native. In my case I have a static native library that is written in Swift using the C ABI for linking. I am able to link the Swift library into my static Rust library just fine but when I go to link the Rust binary against my Rust static library it requires me to link against the static Swift library again. Is it possible to forgo this extra step and help clean up my build.rs files?

0 Answers
Related