From 3f37fd43cf1d5b9479e490ff1f3f1f4f749030ed Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Mon, 15 Dec 2025 16:03:46 +0100 Subject: [PATCH] Exclude development scripts from published packages During a dependency review we noticed that the unicode-width crate includes various development scripts. These development scripts shouldn't be there as they might, at some point become problematic. As of now they prevent any downstream user from enabling the `[bans.build.interpreted]` option of cargo deny. I opted for using an explicit include list instead of an exclude list to prevent these files from beeing included in the published packages to make sure that everything that's included is an conscious choice. --- Cargo.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b48a3ed..0801bbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,16 @@ according to Unicode Standard Annex #11 rules. edition = "2021" rust-version = "1.66" -exclude = ["/.github/*"] +include = [ + "COPYRIGHT", + "LICENSE-MIT", + "LICENSE-APACHE", + "README.md", + "CARGO.toml", + "src/**/*.rs", + "benches/**/*.rs", + "tests/**/*.rs", +] [dependencies] std = { version = "1.0", package = "rustc-std-workspace-std", optional = true }