RS.CLIPPY.CARGO_COMMON_METADATA
Common metadata is defined in `Cargo.toml`
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: cargo_common_metadata. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks to see if all common metadata is defined in
Cargo.toml. See: https://rust-lang-nursery.github.io/api-guidelines/documentation.html#cargotoml-includes-all-common-metadata-c-metadata
Why is this bad?
It will be more difficult for users to discover the purpose of the crate, and key information related to it.
Example
[package]
name = "clippy"
version = "0.0.212"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["clippy", "lint", "plugin"]
categories = ["development-tools", "development-tools::cargo-plugins"]
Should include a description field like:
[package]
name = "clippy"
version = "0.0.212"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["clippy", "lint", "plugin"]
categories = ["development-tools", "development-tools::cargo-plugins"]
Configuration
-
cargo-ignore-publish: For internal testing only, ignores the currentpublishsettings in the Cargo manifest.(default:
false)