#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

#319 in Build Utils

Download history 853/week @ 2023-12-15 935/week @ 2023-12-22 907/week @ 2023-12-29 812/week @ 2024-01-05 846/week @ 2024-01-12 824/week @ 2024-01-19 786/week @ 2024-01-26 673/week @ 2024-02-02 665/week @ 2024-02-09 872/week @ 2024-02-16 933/week @ 2024-02-23 977/week @ 2024-03-01 855/week @ 2024-03-08 654/week @ 2024-03-15 669/week @ 2024-03-22 648/week @ 2024-03-29

2,956 downloads per month
Used in 5 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