货物的建造包括输出二进制路径

发布于 2025-02-03 17:57:24 字数 305 浏览 2 评论 0原文

我正在使用货物构建来编译我的项目。

但是,对于依赖关系,当在二进制上使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文