Skip to content

Commit 4c02a3b

Browse files
weiznichberkus
authored andcommitted
Exclude development scripts from published package
During a dependency review we noticed that the criterion 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 e4e06df commit 4c02a3b

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 @@ rust-version = "1.86"
1717
license = "Apache-2.0 OR MIT"
1818
repository = "https://github.com/criterion-rs/criterion.rs"
1919
readme = "README.md"
20+
include = ["Cargo.toml", "CHANGELOG.md", "README.md", "LICENSE-MIT", "LICENSE-APACHE", "src/**/*.rs"]
2021

2122
[package]
2223
name = "criterion"

0 commit comments

Comments
 (0)