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

#290 in Build Utils

Download history 660/week @ 2024-11-18 816/week @ 2024-11-25 769/week @ 2024-12-02 814/week @ 2024-12-09 731/week @ 2024-12-16 886/week @ 2024-12-23 965/week @ 2024-12-30 991/week @ 2025-01-06 1184/week @ 2025-01-13 884/week @ 2025-01-20 883/week @ 2025-01-27 1034/week @ 2025-02-03 1135/week @ 2025-02-10 1143/week @ 2025-02-17 960/week @ 2025-02-24 808/week @ 2025-03-03

4,174 downloads per month
Used in 8 crates (7 directly)

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