37 releases (9 breaking)

new 0.20.2 Apr 26, 2024
0.19.2 Mar 4, 2024
0.18.0-beta.2 Dec 22, 2023
0.17.1 Nov 22, 2023
0.3.0 Jun 16, 2018

#29 in Parser implementations

Download history 81944/week @ 2024-01-10 89077/week @ 2024-01-17 89625/week @ 2024-01-24 92206/week @ 2024-01-31 91718/week @ 2024-02-07 100158/week @ 2024-02-14 94315/week @ 2024-02-21 97631/week @ 2024-02-28 99766/week @ 2024-03-06 96748/week @ 2024-03-13 104039/week @ 2024-03-20 96185/week @ 2024-03-27 109964/week @ 2024-04-03 102767/week @ 2024-04-10 103830/week @ 2024-04-17 83645/week @ 2024-04-24

419,520 downloads per month
Used in 326 crates (154 directly)

Apache-2.0 OR MIT

115KB
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.6–1.1MB
~26K SLoC