cargo_toml

Crates.iocargo_toml
lib.rscargo_toml
version0.20.2
sourcesrc
created_at2018-06-14 00:51:25.020558
updated_at2024-04-26 01:47:15.559177
description`Cargo.toml` struct definitions for parsing with Serde
homepagehttps://lib.rs/cargo_toml
repositoryhttps://gitlab.com/lib.rs/cargo_toml
max_upload_size
id70024
size128,895
Kornel (kornelski)

documentation

https://docs.rs/cargo_toml

README

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.

Commit count: 217

cargo fmt