The tests of my library partially use a binary provided by an example. Works on stable for now, but with the recent layout changes, beta/nightly fail because of path issues.
Is there a good way to find where the binary of the example resides (after having called cargo build --example basic)? Right now, I'm doing
PathBuf::from(env::var("OUT_DIR").unwrap()) .join("../../../examples") which apparently is not portable between the stable/beta/nightly channels. I could specialise on the cargo version or something, but is there a more programmatic way? I was hoping for an env var like EXAMPLES_BINARY_DIR, but did not find anything that's helping here.
Thanks for any pointers ![]()
1 post - 1 participant
