Skip to content

Commit

Permalink
fix(build): Only include necessary files
Browse files Browse the repository at this point in the history
The PNGs and *.txt test file data are huge.

I prefer explicit inclusion, it reads neater and leads to minimal size.
Ignore approaches can be bad (see .dockerignore, which is
underwhelming): new, large files can be added and not noticed. Explicit
inclusion is fail-fast (doesn't compile/package), at least in theory!

Closes #13
  • Loading branch information
alexpovel committed Aug 5, 2023
1 parent ae6d233 commit 3bcdc0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ readme = "README.md"
documentation = "https://docs.rs/b4s"
keywords = ["search", "string", "str", "uneven"]
categories = ["algorithms"]
include = [
"README.md",
"LICENSE",
"Cargo.toml",
"Cargo.lock",
"src",
# Only include this so the crate compiles; benchmarks won't be runnable because
# required test data isn't included.
"benches/main.rs",
]

[workspace.package]
edition = "2021"
Expand Down

0 comments on commit 3bcdc0f

Please sign in to comment.