summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-01-15 13:05:17 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-01-15 13:05:17 +0800
commit6b1dcb2b9d06e83369b893a20b211c481df90009 (patch)
treea2ce1df90e7a93e25bf839df54ff117f14d583b1
parentfd06bfa3e11707909c2c08788d04105abddbcc9a (diff)
Reduce crate size considerably using 'include' directive in manifest
Please let me know if there is anything else that should be included and I am happy to make the fix. This is the output of `cargo diet`. ``` ➜ so git:(master) cargo diet ┌─────────────────────────────────────────┬─────────────┐ │ Removed File │ Size (Byte) │ ├─────────────────────────────────────────┼─────────────┤ │ .gitignore │ 24 │ │ test/.gitattributes │ 30 │ │ .github/workflows/bump_brew_formula.yml │ 313 │ │ themes/tomorrow.toml │ 366 │ │ themes/tomorrow_night_80s.toml │ 378 │ │ .github/ISSUE_TEMPLATE/bug_report.md │ 487 │ │ ci/before_deploy.ps1 │ 539 │ │ ci/script.sh │ 545 │ │ ci/before_deploy.sh │ 631 │ │ benches/md_parsing.rs │ 857 │ │ roadmap.md │ 1018 │ │ themes/default.toml │ 1344 │ │ ci/install.sh │ 1352 │ │ .github/CONTRIBUTING.md │ 1574 │ │ .travis.yml │ 1867 │ │ appveyor.yml │ 2000 │ │ TODO.md │ 2127 │ │ docs/install.sh │ 2343 │ │ benches/html_parsing.rs │ 2649 │ │ test/duckduckgo/bad-user-agent.html │ 5783 │ │ assets/logo.png │ 39361 │ │ test/duckduckgo/tagged.html │ 71504 │ │ test/duckduckgo/exit-vim.html │ 72157 │ │ test/google/parsing-q.html │ 210638 │ │ test/google/exit-vim.html │ 219267 │ │ assets/demo.gif │ 3776432 │ └─────────────────────────────────────────┴─────────────┘ Saved 98% or 4.4 MB in 26 files (of 4.5 MB and 46 files in entire crate) ```
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cf1ec03..a9f141d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,6 +10,7 @@ keywords = ["cli", "tui", "stackoverflow", "stackexchange"]
categories = ["command-line-utilities"]
authors = ["Sam Tay <sam.chong.tay@pm.me>"]
edition = "2018"
+include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
[badges]
appveyor = { repository = "samtay/so", branch = "master", service = "github" }