Skip to content

Commit f5011f8

Browse files
SuperInstanceclaude
andcommitted
fix: Reduce package size from 16.6MiB to 22.6KiB for crates.io
- Add exclude field to Cargo.toml (more reliable than .cargoignore) - Exclude target/, examples/, and documentation files - Package now 22.6KiB compressed (was 16.6MiB) - Well under 10MiB crates.io limit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a764e09 commit f5011f8

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

crates/constraint-theory-core/.cargoignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Ignore build artifacts
2-
/target/
2+
target
3+
4+
# Ignore examples (reduce package size)
5+
examples
6+
7+
# Ignore test artifacts
8+
Cargo.lock
39

410
# Ignore documentation files (not needed in crate)
511
CHANGELOG.md
@@ -13,8 +19,8 @@ ROUND_*.md
1319
TUTORIAL_ROUND_8.md
1420

1521
# Ignore development files
16-
/.github/
17-
/.git/
22+
.github/
23+
.git/
1824
.gitignore
1925
.cargo/
2026

crates/constraint-theory-core/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@ license = "MIT"
88
repository = "https://github.com/SuperInstance/Constraint-Theory"
99
documentation = "https://docs.rs/constraint-theory-core"
1010
homepage = "https://constraint-theory.superinstance.ai"
11+
exclude = [
12+
"target/*",
13+
"examples/*",
14+
"CHANGELOG.md",
15+
"OPTIMIZATION_ROADMAP.md",
16+
"PERFORMANCE_ANALYSIS_SUMMARY.md",
17+
"PERFORMANCE_REPORT_ROUND_8.md",
18+
"PROFILING_GUIDE.md",
19+
"QUICK_REFERENCE.md",
20+
"RELEASE_NOTES_v1.0.0.md",
21+
"ROUND_*.md",
22+
"TUTORIAL_ROUND_8.md",
23+
".github/*",
24+
".git/*",
25+
".gitignore",
26+
".cargo/*",
27+
".vscode/*",
28+
".idea/*",
29+
]
1130

1231
[dependencies]
1332

0 commit comments

Comments
 (0)