Skip to content

Commit bb1cbdb

Browse files
weiznichdjc
authored andcommitted
Exclude development scripts from published package
During a dependency review we noticed that the commit 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 12281c1 commit bb1cbdb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repository = "https://github.com/console-rs/console"
1010
documentation = "https://docs.rs/console"
1111
readme = "README.md"
1212
rust-version = "1.71"
13+
include = ["CHANGELOG.md", "Cargo.toml", "LICENSE", "README.md", "src/**/*.rs"]
1314

1415
[features]
1516
default = ["unicode-width", "ansi-parsing", "std"]

0 commit comments

Comments
 (0)