#cargo #metadata #struct #toml #serde

cargo_toml

Cargo.toml struct definitions for parsing with Serde

9 releases (4 breaking)

✓ Uses Rust 2018 edition

0.6.4 Feb 15, 2019
0.6.3 Jan 3, 2019
0.6.2 Dec 27, 2018
0.5.0 Dec 25, 2018
0.2.0 Jun 14, 2018

#63 in Rust patterns

Download history

2,912 downloads per month
Used in 3 crates

Apache-2.0 OR MIT

23KB
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 crates.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
~30K SLoC