A Cargo subcommand to print the "out directory", where build script output is written.
cargo install cargo-out-dir
$ cd path/to/crate
$ cargo out-dir
/home/benesch/path/to/crate/target/debug/build/foo-9d9f15d3d084bc3a/out
Licensed under the Apache License, version 2.0.