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

#307 in Build Utils

Download history 652/week @ 2024-06-19 673/week @ 2024-06-26 618/week @ 2024-07-03 732/week @ 2024-07-10 801/week @ 2024-07-17 772/week @ 2024-07-24 694/week @ 2024-07-31 843/week @ 2024-08-07 838/week @ 2024-08-14 668/week @ 2024-08-21 745/week @ 2024-08-28 772/week @ 2024-09-04 955/week @ 2024-09-11 742/week @ 2024-09-18 689/week @ 2024-09-25 571/week @ 2024-10-02

3,089 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