Expand description
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§
- Locate
Manifest Error - Errors that can occur while retrieving the cargo manifest path.
Functions§
- locate_
manifest - Returns the Cargo manifest path of the surrounding crate.