#cargo #metadata #struct #toml #serde

cargo_toml

Cargo.toml struct definitions for parsing with Serde

10 releases (5 breaking)

✓ Uses Rust 2018 edition

0.7.0 Jul 10, 2019
0.6.4 Feb 15, 2019
0.6.3 Jan 3, 2019
0.6.2 Dec 27, 2018
0.2.0 Jun 14, 2018

#70 in Rust patterns

Download history 742/week @ 2019-03-27 744/week @ 2019-04-03 722/week @ 2019-04-10 657/week @ 2019-04-17 559/week @ 2019-04-24 655/week @ 2019-05-01 568/week @ 2019-05-08 492/week @ 2019-05-15 561/week @ 2019-05-22 773/week @ 2019-05-29 669/week @ 2019-06-05 645/week @ 2019-06-12 752/week @ 2019-06-19 1982/week @ 2019-06-26 936/week @ 2019-07-03

3,251 downloads per month
Used in 6 crates

Apache-2.0 OR MIT

24KB
462 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.5MB
~29K SLoC