#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

#355 in Build Utils

Download history 763/week @ 2024-07-27 665/week @ 2024-08-03 978/week @ 2024-08-10 735/week @ 2024-08-17 713/week @ 2024-08-24 737/week @ 2024-08-31 825/week @ 2024-09-07 856/week @ 2024-09-14 767/week @ 2024-09-21 671/week @ 2024-09-28 655/week @ 2024-10-05 752/week @ 2024-10-12 680/week @ 2024-10-19 728/week @ 2024-10-26 757/week @ 2024-11-02 608/week @ 2024-11-09

2,880 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