#cargo-manifest #locate #output #path #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

#328 in Build Utils

Download history 669/week @ 2024-03-14 659/week @ 2024-03-21 739/week @ 2024-03-28 665/week @ 2024-04-04 660/week @ 2024-04-11 629/week @ 2024-04-18 725/week @ 2024-04-25 658/week @ 2024-05-02 685/week @ 2024-05-09 669/week @ 2024-05-16 685/week @ 2024-05-23 731/week @ 2024-05-30 631/week @ 2024-06-06 660/week @ 2024-06-13 635/week @ 2024-06-20 570/week @ 2024-06-27

2,594 downloads per month
Used in 6 crates

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