This is an automated archive made by the Lemmit Bot.

The original was posted on /r/rust by /u/metaltyphoon on 2025-02-12 02:59:12+00:00.


Hello! I’ve been trying to understand how I can trim a Rust staticlib to its bare minimum. For instance, I’ve create a repository to show what I mean. I have a much large static library which targets iOS and the sizes are in the ~30MB range when in release mode. This is not really ideal because in an xcframework I need to pack one for macOS and two for iOS (simulator and non simulator version) and the file is almost 100MB in debug mode.

Any way to help would be appreciated. Thanks