Closed
Description
Problem
As the title says, cargo overrides all executables in a build folder. Expected behavior: don't override unrelated executables.
Steps
- Write any program and run 'cargo build/run [--release]'.
- Locate compiled binary(assume its foo.exe) and calculate its checksum.
- Rename the executable to something different(assume bar.exe).
- Change your program a little bit to differentiate resulting binary and compile again.
- Compare checksums of foo.exe and bar.exe - they are the same.
Notes
It doesn't work with third-party binary.
Output of cargo version
:
cargo 1.45.0-nightly (9fcb8c1 2020-05-25)