25 unstable releases (6 breaking)

0.20.5 Sep 24, 2024
0.20.4 Jul 19, 2024
0.20.3 Jun 18, 2024
0.19.2 Mar 4, 2024
0.3.0 Jun 16, 2018

#22 in Parser implementations

Download history 117058/week @ 2024-07-27 124231/week @ 2024-08-03 135120/week @ 2024-08-10 123344/week @ 2024-08-17 132313/week @ 2024-08-24 141495/week @ 2024-08-31 134255/week @ 2024-09-07 127307/week @ 2024-09-14 131332/week @ 2024-09-21 138060/week @ 2024-09-28 131079/week @ 2024-10-05 141851/week @ 2024-10-12 132084/week @ 2024-10-19 134681/week @ 2024-10-26 134813/week @ 2024-11-02 146076/week @ 2024-11-09

571,487 downloads per month
Used in 469 crates (185 directly)

Apache-2.0 OR MIT

120KB
2K SLoC

Deserialize Cargo.toml

tom replacement

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 the lib.rs site to extract information about crates.

This crate is more than just schema definition. It supports post-processing of the data to emulate Cargo's workspace inheritance and autobins features. It supports files on disk as well as other non-disk data sources.

To get started, see Manifest::from_slice. If you need to get information about Cargo projects local to devs' machines, also consider cargo_metadata.

There will be updates

Cargo regularly adds new features to Cargo.toml. Keep this crate up-to-date to correctly parse them all — use dependabot or renovate.

Dependencies

~0.5–1.1MB
~26K SLoC