Function cargo::core::compiler::package_remap
source ยท fn package_remap(build_runner: &BuildRunner<'_, '_>, unit: &Unit) -> OsString
Expand description
Path prefix remap rules for dependencies.
- Git dependencies: remove
~/.cargo/git/checkouts
prefix. - Registry dependencies: remove
~/.cargo/registry/src
prefix. - Others (e.g. path dependencies):
- relative paths to workspace root if inside the workspace directory.
- otherwise remapped to
<pkg>-<version>
.