Skip to content

Commit 43c0ef9

Browse files
committed
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.
1 parent 9d98411 commit 43c0ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ according to Unicode Standard Annex #11 rules.
2525
edition = "2021"
2626
rust-version = "1.66"
2727

28-
exclude = ["/.github/*"]
28+
include = ["COPYRIGHT", "LICENSE-MIT", "LICENSE-APACHE", "README.md", "CARGO.toml", "src/**/*.rs"]
2929

3030
[dependencies]
3131
std = { version = "1.0", package = "rustc-std-workspace-std", optional = true }

0 commit comments

Comments
 (0)