From 12f5e37ed9052965d40d79bd8d749d352810bf04 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 3 Feb 2023 09:20:08 +1100 Subject: [PATCH] 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. --- bitcoin/Cargo.toml | 2 +- hashes/Cargo.toml | 1 + internals/Cargo.toml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bitcoin/Cargo.toml b/bitcoin/Cargo.toml index 9b671e0a..5ef9d0e3 100644 --- a/bitcoin/Cargo.toml +++ b/bitcoin/Cargo.toml @@ -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 diff --git a/hashes/Cargo.toml b/hashes/Cargo.toml index 8734dd0c..aef9ce6d 100644 --- a/hashes/Cargo.toml +++ b/hashes/Cargo.toml @@ -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"] diff --git a/internals/Cargo.toml b/internals/Cargo.toml index a5b9d7ab..c19d9f1b 100644 --- a/internals/Cargo.toml +++ b/internals/Cargo.toml @@ -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]