Crate cargo_manifest

source ·
Expand description

This crate defines structs that can be deserialized with Serde to load and inspect Cargo.toml metadata.

See Manifest::from_slice.

Structs§

  • When a dependency is defined as { workspace = true }, and workspace data hasn’t been applied yet.
  • The top-level Cargo.toml structure
  • You can replace Metadata type with your own to parse into something more useful than a generic toml Value
  • Cargo uses the term “target” for both “target platform” and “build target” (the thing to build), which makes it ambigous. Here Cargo’s bin/lib target is renamed to product.
  • The workspace.package table is where you define keys that can be inherited by members of a workspace. These keys can be inherited by defining them in the member package with {key}.workspace = true.

Enums§

Traits§

Type Aliases§