Skip to content

Commit db5df47

Browse files
authored
chore: refine crate packaging by excluding unnecessary files (#122)
* chore: refine crate contents exclusion Expanded the list of files excluded from the package distribution to reduce unnecessary file inclusion in the crate. - Added more ignore patterns to exclude non-essential files - Helps keep package size minimal - Improves package distribution efficiency * chore: update Cargo.lock for version 0.1.17 * chore(package): lean crate optimization Exclude test-related directories from package to minimize crate size: - Added 'src/unit_tests/' to exclusions - Added 'tests/' to exclusions Adheres to the 'Lean Crate' Movement philosophy of reducing unnecessary files in published packages.
1 parent 6179680 commit db5df47

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,40 @@
11
[package]
22
name = "samoyed"
3-
version = "0.1.16"
3+
version = "0.1.17"
44
authors = ["Behrang Saeedzadeh <[email protected]>"]
55
edition = "2024"
66
rust-version = "1.88.0"
77
readme = "README.md"
88
homepage = "https://github.com/nutthead/samoyed"
99
repository = "https://github.com/nutthead/samoyed"
1010
license = "MIT"
11-
description = "A modern native Git hooks manager implemented in Rust"
11+
description = "A single-binary Git hooks manager"
1212
keywords = ["git", "git-hooks", "git-hooks-manager", "husky"]
13-
exclude = [".samoyed/", "samoyed.toml", "docs/", ".claude/", "CLAUDE.md"]
13+
exclude = [
14+
".claude/",
15+
".github/",
16+
".gitignore",
17+
".samoyed/",
18+
"docs/",
19+
"src/unit_tests/",
20+
"tests/",
21+
".markdownlint.json",
22+
".tarpaulin.toml",
23+
"CLAUDE.md",
24+
"samoyed.toml",
25+
]
26+
1427

1528
[[bin]]
1629
name = "samoyed"
1730
path = "src/main.rs"
1831

32+
1933
[[bin]]
2034
name = "samoyed-hook"
2135
path = "src/hook_runner.rs"
2236

37+
2338
[dependencies]
2439
clap = { version = "4.5", features = ["derive"] }
2540
toml = "0.9"
@@ -31,19 +46,23 @@ anyhow = "1.0"
3146
tempfile = "3.13"
3247
criterion = "0.7"
3348

49+
3450
[[bench]]
3551
name = "benchmark"
3652
harness = false
3753
path = "tests/benchmark_tests/benchmark.rs"
3854

55+
3956
[profile.release]
4057
opt-level = "z" # Optimize for size over speed
4158
lto = true # Link-time optimization (performance + size)
4259
codegen-units = 1 # Single codegen unit (better optimization)
4360
strip = true # Remove debug symbols (size)
4461

62+
4563
[profile.release.package."*"]
4664
opt-level = "z" # Optimize for size over speed for dependencies
4765

66+
4867
[lints.rust]
4968
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }

0 commit comments

Comments
 (0)