From 3bcdc0f0d34823b674c0d391cdf89ac14f2166b4 Mon Sep 17 00:00:00 2001 From: Alex Povel Date: Sat, 5 Aug 2023 10:51:38 +0200 Subject: [PATCH] fix(build): Only `include` necessary files 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 --- Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 66feb31..c7cf6b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"