Skip to content

Exclude development scripts from published package#320

Merged
djc merged 1 commit intorustls:mainfrom
GiGainfosystems:exclude_scripts
Jan 1, 2026
Merged

Exclude development scripts from published package#320
djc merged 1 commit intorustls:mainfrom
GiGainfosystems:exclude_scripts

Conversation

@weiznich
Copy link
Copy Markdown
Contributor

During a dependency review we noticed that the hyper-rustls 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 being included in the published packages to make sure that everything that's included is an conscious choice.

During a dependency review we noticed that the hyper-rustls 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 being included in the published packages to make sure that everything that's included is an conscious choice.
@djc djc added this pull request to the merge queue Jan 1, 2026
Merged via the queue into rustls:main with commit e2a7bb3 Jan 1, 2026
11 checks passed
Comment thread Cargo.toml
homepage = "https://github.com/rustls/hyper-rustls"
repository = "https://github.com/rustls/hyper-rustls"
documentation = "https://docs.rs/hyper-rustls/"
include = ["Cargo.toml", "LICENSE-MIT", "LICENSE-APACHE", "LICENSE-ICS", "README.md", "src/**/*.rs"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There's a typo here - it says "LICENSE-ICS" but it should be "LICENSE-ISC".

This has resulted in the latest release not including the ISC license text.

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.

🤦 Oops. Thanks for catching. Addressing in #340. Seems worth a point release to fix.

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.

4 participants