[−][src]Function cargo_valgrind::binaries
pub fn binaries<P: AsRef<Path>>(
path: P,
build: Build
) -> Result<Vec<PathBuf>, Error>
Deprecated:
use targets() instead, as it provides more information
Query all binaries of the crate denoted by the given Cargo.toml
.
This function returns the paths to each executable in the given crate. Those
are all the examples, benches as the actual crate binaries. This is based on
the crate metadata obtained by metadata()
.
Only binaries of the specified manifest are returned. This means, that other crates in the same workspace may have binaries, but they are ignored.
Note, that plain tests and custom-build
kinds currently are not supported.
Errors
This function fails for the same reasons as the metadata()
function.
Panics
This function currently panics, if a test or custom build binary is encountered.