[][src]Crate locate_cargo_manifest

Retrieves the Cargo manifest path by parsing the output of cargo locate-project.

Example:

use locate_cargo_manifest::locate_manifest;

let manifest_path = locate_manifest().expect("failed to retrieve cargo manifest path");
assert!(manifest_path.ends_with("Cargo.toml"));

Enums

LocateManifestError

Errors that can occur while retrieving the cargo manifest path.

Functions

locate_manifest

Returns the Cargo manifest path of the surrounding crate.