This is supported on crate features serde and toml only.
Expand description

serde structures for parsing The Manifest Format

Why this over cargo_metadata?

  1. cargo metadata requires a valid workspace - missing crates etc. kill the whole command
  2. metadata fields in cargo_metadata are just tables, I want them parameterized for easier usage
  3. I also want spans and non-fatal errors for better error reporting and stuff

Modules

Structs

Cargo.toml — The root of the parsed manifest, without context like “what was Cargo.toml’s path?”

[package] — Defines a package.

[workspace] — The workspace definition.