嵌入在二进制文件中的本地文件路径字符串

作者: ptdecker创建于 2023年11月6日更新于 2024年1月21日

Hello! I'm working through this awesome guide to reduce the size of my compiled binaries. It is making a big difference. While inspecting the result, I used `strings` to take a look at what strings are still in the result. I see multiple places where it appears that the resultant release binary contains file paths that reflect my local file system. Also, these paths are sometimes long and thus also contribute slightly to binary size. I'd like to understand why these full paths are being included and if there is a way to suppress them. Your help, thoughts, and ideas are much appreciated! Here is my release compile profile:

内容来源: johnthagen/min-sized-rust