Recently I had to fix bug 975031, which was the same issue. Hardcoded
target/release paths in the ebuilds for rust projects. And this will
fail if the debug use flag is enabled. Because then, instead of
target/release, rust compiles the binary to target/debug
using cargo_target_dir from the cargo.eclass fixes this problem
It does not touch some ebuilds tho because for some I wasn't fully sure
if I should change the paths, and for some I wanted to do it in a
separate commit
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
Part-of: https://codeberg.org/gentoo/guru/pulls/21
Signed-off-by: Michał Górny <mgorny@gentoo.org>