#cargo-manifest #manifest-path #locate #path-parser #output

build locate-cargo-manifest

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

3 unstable releases

0.2.2 Aug 31, 2020
0.2.1 Aug 30, 2020
0.2.0 May 6, 2020
0.1.0 Mar 25, 2019

#579 in Build Utils

Download history 1099/week @ 2025-10-21 1062/week @ 2025-10-28 969/week @ 2025-11-04 1257/week @ 2025-11-11 1341/week @ 2025-11-18 1061/week @ 2025-11-25 1425/week @ 2025-12-02 1229/week @ 2025-12-09 1071/week @ 2025-12-16 1080/week @ 2025-12-23 1173/week @ 2025-12-30 992/week @ 2026-01-06 1069/week @ 2026-01-13 1171/week @ 2026-01-20 1055/week @ 2026-01-27 1048/week @ 2026-02-03

4,457 downloads per month
Used in 10 crates (8 directly)

MIT/Apache

6KB
87 lines

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"));

Dependencies

~145KB