Skip to content

Commit e8ea209

Browse files
weiznichidubrov
authored andcommitted
Exclude development scripts from published package
During a dependency review we noticed that the json-patch 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 85a7f20 commit e8ea209

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
@@ -9,6 +9,7 @@ repository = "https://github.com/idubrov/json-patch"
99
license = "MIT/Apache-2.0"
1010
readme = "README.md"
1111
edition = "2021"
12+
include = ["Cargo.toml", "README.md", "LICENSE-MIT", "LICENSE-APACHE", "src/**/*.rs"]
1213

1314
[features]
1415
default = ["diff"]

0 commit comments

Comments
 (0)