From ef48650ce96f7ccb75102afd40ccabd4955df610 Mon Sep 17 00:00:00 2001 From: Aneesh Date: Thu, 18 Sep 2025 17:30:28 +0530 Subject: [PATCH] docs: add note about Cargo.toml lint config --- book/src/configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/book/src/configuration.md b/book/src/configuration.md index b13054431898..e03ce1d4b389 100644 --- a/book/src/configuration.md +++ b/book/src/configuration.md @@ -93,6 +93,18 @@ To deny `clippy::enum_glob_use`, put the following in the `Cargo.toml`: [lints.clippy] enum_glob_use = "deny" ``` +> **Note:** +> The `[lints.clippy]` table in `Cargo.toml` can **only** be used to set lint +> *levels* (`allow`, `warn`, `deny`). +> +> It does **not** support Clippy-specific configuration options (such as +> `allowed-duplicate-crates`, `disallowed-names`, etc.). +> For those, you must still use a separate `clippy.toml` (or `.clippy.toml`) +> file placed at the root of your project. +> +> Although [RFC 3389](https://rust-lang.github.io/rfcs/3389-manifest-lint.html) +> proposes extending `Cargo.toml` to support full lint configuration, this is +> **not yet implemented**. For more details and options, refer to the Cargo documentation.