#cargo #metadata #struct #toml #serde

cargo_toml

Cargo.toml struct definitions for parsing with Serde

17 releases

0.9.2 Jun 6, 2021
0.9.0 Apr 10, 2021
0.8.1 Aug 8, 2020
0.8.0 Aug 26, 2019
0.3.0 Jun 16, 2018

#31 in Parser implementations

Download history 11777/week @ 2021-04-07 13282/week @ 2021-04-14 12661/week @ 2021-04-21 9419/week @ 2021-04-28 11577/week @ 2021-05-05 15402/week @ 2021-05-12 13507/week @ 2021-05-19 17038/week @ 2021-05-26 17785/week @ 2021-06-02 21890/week @ 2021-06-09 16104/week @ 2021-06-16 13680/week @ 2021-06-23 24066/week @ 2021-06-30 16034/week @ 2021-07-07 19654/week @ 2021-07-14 11854/week @ 2021-07-21

56,531 downloads per month
Used in 82 crates (48 directly)

Apache-2.0 OR MIT

27KB
534 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