remap-path-prefix
is not convenient to use in .cargo/config for privacy
#64839
Labels
A-driver
Area: rustc_driver that ties everything together into the `rustc` compiler
A-reproducibility
Area: Reproducible / deterministic builds
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-cargo
Relevant to the cargo team, which will review and decide on the PR/issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Let's say when building your executable for release, you have this goal: Maximum privacy, strip all paths associated with the build machine from the release executable. Requirements:
.cargo/config
).cargo/config
)remap-path-prefix-from
requires specifying the path to the project. There are 2 problems with it:.cargo/config
.It would be better to have an option that:
It could look like this:
--strip-path-prefix
and it behaves likeremap-path-prefix-from
set to the path to the project andremap-path-prefix-to
set to the empty string.If this is too much to ask, as an alternative, it should be possible to pass a placeholder to
remap-path-prefix-from
that always means "the project's path", so that it can be used inside.cargo/config
, agnostic to the build machine / project path.The text was updated successfully, but these errors were encountered: