Skip to content

Commit 63d0234

Browse files
authored
Exclude development scripts from published package (#152)
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 4454518 commit 63d0234

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Cargo.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ 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 = [
20+
"COPYRIGHT",
21+
"LICENSE-MIT",
22+
"LICENSE-APACHE",
23+
"Cargo.toml",
24+
"src/**/*.rs",
25+
"README.md",
26+
"tests/**/*.rs",
27+
"benches/**/*.rs",
28+
]
2029

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

0 commit comments

Comments
 (0)