Add excludes to manifests

We can check which files are included in the packaged release with
 `cargo package --list `.

Add an `exclude` section to each manifest that excludes `tests/` and
`contrib/`. Not all crates have a `tests/` directory yet but they should
so add the exclude anyway to future proof the crates.
This commit is contained in:
Tobin C. Harding 2023-02-03 09:20:08 +11:00
parent cc3b5a080b
commit 12f5e37ed9
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
3 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ documentation = "https://docs.rs/bitcoin/"
description = "General purpose library for using and interoperating with Bitcoin and other cryptocurrencies."
keywords = [ "crypto", "bitcoin" ]
readme = "README.md"
exclude = ["tests/"]
exclude = ["tests", "contrib"]
edition = "2018"
# Please don't forget to add relevant features to docs.rs below

View File

@ -10,6 +10,7 @@ documentation = "https://docs.rs/bitcoin_hashes/"
keywords = [ "crypto", "bitcoin", "hash", "digest" ]
readme = "README.md"
edition = "2018"
exclude = ["tests", "contrib"]
[features]
default = ["std"]

View File

@ -10,6 +10,7 @@ categories = ["cryptography::cryptocurrencies"]
keywords = ["internal"]
readme = "README.md"
edition = "2018"
exclude = ["tests", "contrib"]
# Please don't forget to add relevant features to docs.rs below.
[features]