#locate #manifest #cargo #path

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
Download history 572/week @ 2021-01-05 576/week @ 2021-01-12 593/week @ 2021-01-19 623/week @ 2021-01-26 793/week @ 2021-02-02 541/week @ 2021-02-09 700/week @ 2021-02-16 523/week @ 2021-02-23 595/week @ 2021-03-02 625/week @ 2021-03-09 576/week @ 2021-03-16 686/week @ 2021-03-23 621/week @ 2021-03-30 656/week @ 2021-04-06 571/week @ 2021-04-13 633/week @ 2021-04-20

2,601 downloads per month
Used in 4 crates

MIT/Apache

6KB
87 lines


lib.rs:

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