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

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

#368 in Build Utils

Download history 941/week @ 2024-09-09 756/week @ 2024-09-16 727/week @ 2024-09-23 691/week @ 2024-09-30 648/week @ 2024-10-07 733/week @ 2024-10-14 694/week @ 2024-10-21 767/week @ 2024-10-28 766/week @ 2024-11-04 696/week @ 2024-11-11 660/week @ 2024-11-18 816/week @ 2024-11-25 769/week @ 2024-12-02 814/week @ 2024-12-09 731/week @ 2024-12-16 886/week @ 2024-12-23

3,317 downloads per month
Used in 7 crates (6 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