Skip to content

Exclude development scripts from published package#152

Merged
Manishearth merged 1 commit into
unicode-rs:masterfrom
GiGainfosystems:exclude_scripts
Dec 16, 2025
Merged

Exclude development scripts from published package#152
Manishearth merged 1 commit into
unicode-rs:masterfrom
GiGainfosystems:exclude_scripts

Conversation

@weiznich

Copy link
Copy Markdown
Contributor

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.

@Manishearth Manishearth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should still include the tests and benches.

@weiznich

Copy link
Copy Markdown
Contributor Author

Should I just push a fix for the CI failure as well?

@Manishearth

Copy link
Copy Markdown
Member

Sure!

@Manishearth

Copy link
Copy Markdown
Member

Still fails tests due to an unused import.

(Wonder how this at all passed before)

@Manishearth

Copy link
Copy Markdown
Member

oy vey. lemme just fix this for you since I can actually have CI run immediately

@Manishearth Manishearth mentioned this pull request Dec 16, 2025
@Manishearth

Copy link
Copy Markdown
Member

#153

@Manishearth

Copy link
Copy Markdown
Member

Landed, but this branch needs to be updated unfortunately. I can't do this from here since I can't push to this PR, but i can merge once you're done.

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.
@weiznich

Copy link
Copy Markdown
Contributor Author

Thanks for the help 🙏

@Manishearth Manishearth merged commit 63d0234 into unicode-rs:master Dec 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants