I am building a static lib (
.a) from some Rust code, and this
.a file will be used (linked) by an iOS app. However, that
.a file contains tons of symbols - Rust functions that are only to be used internally instead of exposing to the iOS app. Indeed, the Rust code uses
#[no_mangle] pub extern "C" fn to expose the apis that will be used by the iOS app. All other functions will never be used and should not appear in the final app.
Therefore, I wonder how can I remove all symbols except "no_mangle extern" ones in Rust's
Thanks for any suggestions!