货物的建造包括输出二进制路径
我正在使用货物构建
来编译我的项目。
但是,对于依赖关系,当在二进制上使用strings
时,将在OutputBinary中记录完整的绝对路径。
例如:/home/evrey/.cargo/registry/src/test.net-2c6299999ec823/winit-0.20.0.0.0-alpha6/src/platform_impl/linux/linux/x11/window.rs
。
如何使用货物构建
从编译的二进制中删除私有路径?
I'm using cargo build
to compile my project.
However, for dependencies the full absolute path is logged in the outputbinary when using strings
on the binary.
For example: /home/evrey/.cargo/registry/src/test.net-2dcc6299db9ec823/winit-0.20.0-alpha6/src/platform_impl/linux/x11/window.rs
.
How can I remove the private paths from the compiled binary using cargo build
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论