https://github.com/software-mansion/scarb/blob/72dc1bd236584bad2d3cbb75bc5b3cff6924045f/utils/scarb-test-support/src/cargo.rs#L7-L34 - `CARGO_BIN_EXE_` is on available at compile time (i.e. you need `env!` to read it) - `lookup_cargo_bin` relies on implementation details of cargo that will soon break (rust-lang/cargo#16147, rust-lang/cargo#15010)
scarb/utils/scarb-test-support/src/cargo.rs
Lines 7 to 34 in 72dc1bd
CARGO_BIN_EXE_is on available at compile time (i.e. you needenv!to read it)lookup_cargo_binrelies on implementation details of cargo that will soon break (Movebuild-dirout of the workspace tocargo-cache-homeby default rust-lang/cargo#16147, Re-organize build-dir by package + hash, rather than artifact type rust-lang/cargo#15010)