Skip to content

Commit 1f772e9

Browse files
committed
Exclude development scripts from published package
During a dependency review we noticed that the unicode-segmentation 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 af87c8d commit 1f772e9

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
@@ -16,7 +16,7 @@ This crate provides Grapheme Cluster, Word and Sentence boundaries
1616
according to Unicode Standard Annex #29 rules.
1717
"""
1818

19-
exclude = ["/.github", "/benches/texts", "/scripts/**.rs", "*.txt"]
19+
include = ["COPYRIGHT", "LICENSE-MIT", "LICENSE-APACHE", "Cargo.toml", "src/**/*.rs", "README.md"]
2020

2121
[features]
2222
no_std = [] # This is a no-op, preserved for backward compatibility only.

0 commit comments

Comments
 (0)