From 29bd8550e6a990bca143296165b51e38b4e90624 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 17 Mar 2023 16:38:45 -0700 Subject: [PATCH] Fix warning about Cargo.toml exclude/include warning: both package.include and package.exclude are specified; the exclude list will be ignored --- Cargo.toml | 2 -- build.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a58645d0b2..c1794490e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,10 +6,8 @@ categories = ["development-tools::procedural-macro-helpers", "parser-implementat description = "Parser for Rust source code" documentation = "https://docs.rs/syn" edition = "2021" -exclude = ["build.rs"] include = [ "/benches/**", - "/build.rs", "/Cargo.toml", "/LICENSE-APACHE", "/LICENSE-MIT", diff --git a/build.rs b/build.rs index 5a9e619d67..c550dddb28 100644 --- a/build.rs +++ b/build.rs @@ -15,7 +15,7 @@ fn main() { None => return, }; - // Note: remove exclude=["build.rs"] from Cargo.toml if adding any + // Note: add "/build.rs" to package.include in Cargo.toml if adding any // conditional compilation within the library. let _ = compiler.minor;