Exclude some unnecessary files from the crate#424
Conversation
|
Thanks! Thoughts on making it an allowlist using |
No objections to that. It could look something like this: diff --git a/Cargo.toml b/Cargo.toml
index 6cf6696..a9ab3fd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,13 +10,12 @@ edition = "2021"
categories = ["development-tools::testing"]
keywords = ["datatest", "data-driven-tests", "test-harness"]
rust-version = "1.72"
-exclude = [
- ".cargo/**",
- ".github/**",
- ".gitignore",
- "Justfile",
- "release.toml",
- "scripts/**",
+include = [
+ "CHANGELOG.md",
+ "LICENSE*",
+ "README.md",
+ "src/**",
+ "tests/**",
]
[badges]which is equivalent, except that I hadn’t excluded I’ve left the tests in for now because they’re useful to me: I maintain a |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #424 +/- ##
==========================================
+ Coverage 87.59% 88.47% +0.87%
==========================================
Files 4 4
Lines 403 399 -4
==========================================
Hits 353 353
+ Misses 50 46 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks -- let's include the tests. |
Suggested in the review for a
rust-datatest-stablepackage for Fedora. These files are only useful for upstream development, and aren’t useful for crate users.