#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

#322 in Build Utils

Download history 834/week @ 2023-12-03 830/week @ 2023-12-10 916/week @ 2023-12-17 897/week @ 2023-12-24 899/week @ 2023-12-31 800/week @ 2024-01-07 828/week @ 2024-01-14 870/week @ 2024-01-21 761/week @ 2024-01-28 631/week @ 2024-02-04 791/week @ 2024-02-11 779/week @ 2024-02-18 937/week @ 2024-02-25 991/week @ 2024-03-03 786/week @ 2024-03-10 682/week @ 2024-03-17

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