Browse Source

Slim down git-config with cargo-diet

Here is the output of the run

```
cargo diet -n -r
┌─────────────────────────────────────────────────────┬─────────────┐
│ Removed File                                        │ Size (Byte) │
├─────────────────────────────────────────────────────┼─────────────┤
│ .gitignore                                          │          22 │
│ .vscode/settings.json                               │         165 │
│ tests/integration_tests/main.rs                     │         320 │
│ tests/integration_tests/file_integeration_test.rs   │        3345 │
│ tests/integration_tests/parser_integration_tests.rs │        5439 │
│ benches/large_config_file.rs                        │        7422 │
└─────────────────────────────────────────────────────┴─────────────┘
Saved 7% or 16.7 KB in 6 files (of 228.7 KB and 15 files in entire crate)
```

Please feel free to re-add anything of importance via includes, but note
that all crates here only include what's needed to build, not to test.

The latter can be done by maintainers by cloning the repo and checking
out the corresponding tag.
pull/50/head
Sebastian Thiel 2 months ago
parent
commit
1c555e04d3
  1. 2
      etc/check-package-size.sh
  2. 2
      git-config/Cargo.toml

2
etc/check-package-size.sh

@ -16,7 +16,7 @@ function indent () {
echo "in root: gitoxide CLI"
indent cargo diet -n --package-size-limit 25KB
(enter git-config && indent cargo diet -n --package-size-limit 50KB)
(enter git-config && indent cargo diet -n --package-size-limit 45KB)
(enter git-hash && indent cargo diet -n --package-size-limit 5KB)
(enter git-features && indent cargo diet -n --package-size-limit 15KB)
(enter git-ref && indent cargo diet -n --package-size-limit 4KB)

2
git-config/Cargo.toml

@ -8,7 +8,7 @@ authors = ["Edward Shen <code@eddie.sh>"]
edition = "2018"
keywords = ["git-config", "git", "config", "gitoxide"]
categories = ["config", "parser-implementations"]
exclude = ["fuzz/**/*", ".vscode/**/*"]
include = ["src/**/*", "LICENSE-*", "README.md"]
[features]
# serde = ["serde_crate"]

Loading…
Cancel
Save