#cargo #metadata #struct #toml #serde

cargo_toml

Cargo.toml struct definitions for parsing with Serde

9 unstable releases (4 breaking)

0.10.1 Sep 30, 2021
0.9.3 Aug 26, 2021
0.9.2 Jun 6, 2021
0.8.1 Aug 8, 2020
0.3.0 Jun 16, 2018

#26 in Parser implementations

Download history 24283/week @ 2021-07-01 12522/week @ 2021-07-08 21474/week @ 2021-07-15 9757/week @ 2021-07-22 18007/week @ 2021-07-29 36164/week @ 2021-08-05 43281/week @ 2021-08-12 25094/week @ 2021-08-19 19639/week @ 2021-08-26 16805/week @ 2021-09-02 17268/week @ 2021-09-09 17890/week @ 2021-09-16 11881/week @ 2021-09-23 14457/week @ 2021-09-30 16179/week @ 2021-10-07 20786/week @ 2021-10-14

88,391 downloads per month
Used in 97 crates (56 directly)

Apache-2.0 OR MIT

30KB
612 lines

Deserialize Cargo.toml

This is a definition of fields in Cargo.toml files for serde. It allows reading of Cargo.toml data, and serializing it using TOML or other formats. It's used by lib.rs project to extract information about crates.

To get started, see Manifest::from_slice.

Additionally, this crate supports basic post-processing of the data to emulate Cargo's autobins feature, which sets manifest defaults based on presence of files on disk (other non-disk data sources are also supported).

Dependencies

~0.8–1.4MB
~34K SLoC