Skip to content

Commit 3f2745c

Browse files
committed
Exclude a script file from the published package
During a dependency review we noticed that the xattr crate includes a ci script file. This file is not required for building xattr as depndency. The script file 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 beeing included in the published packages to make sure that everything that's included is an conscious choice.
1 parent 3e1914f commit 3f2745c

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
@@ -9,6 +9,7 @@ documentation = "https://docs.rs/xattr"
99
repository = "https://github.com/Stebalien/xattr"
1010
keywords = ["xattr", "filesystem", "unix"]
1111
license = "MIT OR Apache-2.0"
12+
include = ["README.md", "LICENSE-*", "Cargo.toml", "src/**/*.rs", "tests/**/*.rs"]
1213

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

0 commit comments

Comments
 (0)