Skip to content

Commit

Permalink
Fix warning about Cargo.toml exclude/include
Browse files Browse the repository at this point in the history
    warning: both package.include and package.exclude are specified; the exclude list will be ignored
  • Loading branch information
dtolnay committed Mar 17, 2023
1 parent 4788fd9 commit 29bd855
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 29bd855

Please sign in to comment.