Programmatically finding an example binary
The Rust Programming Language Forum
Programmatically finding an example binary
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 v...
0 comments
No comments yet.