Skip to content

Commit 173107a

Browse files
weiznichvorner
authored andcommitted
Exclude development script from published package
During a dependency review we noticed that the signal-hook 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 beeing included in the published packages to make sure that everything that's included is an conscious choice.
1 parent 2413101 commit 173107a

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ keywords = ["signal", "unix", "daemon"]
1313
license = "MIT OR Apache-2.0"
1414
edition = "2018"
1515
rust-version = "1.66"
16+
include.workspace = true
1617

1718
[badges]
1819
maintenance = { status = "actively-developed" }
@@ -35,6 +36,9 @@ members = [
3536
"serial_test",
3637
]
3738

39+
[workspace.package]
40+
include = ["CHANGELOG.md", "LICENSE-MIT", "LICENSE-APACHE", "README.md", "build.rs", "src/**/*.rs", "tests/**/*.rs", "examples/**/*.rs"]
41+
3842
[dependencies]
3943
libc = "^0.2"
4044
signal-hook-registry = { version = "^1.4", path = "signal-hook-registry" }

signal-hook-async-std/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ keywords = ["signal", "unix", "async-std"]
1414
license = "MIT OR Apache-2.0"
1515

1616
edition = "2018"
17+
include.workspace = true
1718

1819
[badges]
1920
travis-ci = { repository = "vorner/signal-hook" }

signal-hook-mio/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ readme = "README.md"
1212
repository = "https://github.com/vorner/signal-hook"
1313
keywords = ["signal", "unix", "mio"]
1414
license = "MIT OR Apache-2.0"
15+
include.workspace = true
1516

1617
edition = "2018"
1718
rust-version = "1.66"

signal-hook-registry/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ repository = "https://github.com/vorner/signal-hook"
1313
keywords = ["signal", "unix", "daemon"]
1414
license = "MIT OR Apache-2.0"
1515
rust-version = "1.26"
16+
include.workspace = true
1617

1718
[badges]
1819
travis-ci = { repository = "vorner/signal-hook" }

signal-hook-tokio/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ readme = "README.md"
1212
repository = "https://github.com/vorner/signal-hook"
1313
keywords = ["signal", "unix", "tokio"]
1414
license = "MIT OR Apache-2.0"
15+
include.workspace = true
1516

1617
edition = "2018"
1718

0 commit comments

Comments
 (0)