#cargo #metadata #struct #toml #serde

cargo_toml

Cargo.toml struct definitions for parsing with Serde

13 releases (6 breaking)

✓ Uses Rust 2018 edition

0.8.0 Aug 26, 2019
0.7.0 Jul 10, 2019
0.6.4 Feb 15, 2019
0.6.2 Dec 27, 2018
0.3.0 Jun 16, 2018

#48 in Rust patterns

Download history 564/week @ 2019-05-13 510/week @ 2019-05-20 722/week @ 2019-05-27 653/week @ 2019-06-03 706/week @ 2019-06-10 644/week @ 2019-06-17 1762/week @ 2019-06-24 1074/week @ 2019-07-01 1298/week @ 2019-07-08 848/week @ 2019-07-15 1448/week @ 2019-07-22 1712/week @ 2019-07-29 1269/week @ 2019-08-05 1777/week @ 2019-08-12 1156/week @ 2019-08-19

5,040 downloads per month
Used in 10 crates

Apache-2.0 OR MIT

25KB
503 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

~1–1.4MB
~33K SLoC