fix(embeded): Don't pollute the scripts dir with target/ by epage · Pull Request #12282 · rust-lang/cargo (original) (raw)

What does this PR try to resolve?

This PR is part of #12207.

This specific behavior was broken in #12268 when we stopped using an intermediate
Cargo.toml file.

Unlike pre-#12268,

Unlike the Pre-RFC demo

How should we test and review this PR?

A new test was added specifically to show the target dir behavior, rather than overloading an existing test or making all tests sensitive to changes in this behavior.

Additional information

In the future, we might want to resolve symlinks before we get to this point