Skip to content

Commit fd426ca

Browse files
authored
Exclude development scripts from published package (#810)
During a dependency review we noticed that the bytes 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.
1 parent b4ed70d commit fd426ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ repository = "https://github.com/tokio-rs/bytes"
1717
readme = "README.md"
1818
keywords = ["buffers", "zero-copy", "io"]
1919
categories = ["network-programming", "data-structures"]
20+
include = ["CHANGELOG.md", "LICENSE", "README.md", "SECURITY.md", "Cargo.toml", "src/**/*.rs", "tests/**/*.rs", "clippy.toml"]
2021

2122
[features]
2223
default = ["std"]

0 commit comments

Comments
 (0)