I have used
env!(CARGO_BIN_EXE_<name>) to get the path of the executable for integration testing inside a package. But it seems like it did not work if the
<name> refers to an executable from a sibling package in the same workspace. Is that expected?
basically my project has structure like this:
\package_1 \package_2 Cargo.toml
Cargo.toml is basically this:
[workspace] members = [ "package_1", "package_2", ]
My goal is to run an integration test that brings up executables from both
package_2. What's the recommended way to identify the path of executables? Is it
CARGO_BIN_EXE_<name> or something else?