| Crates.io | srcpack |
| lib.rs | srcpack |
| version | 0.2.4 |
| created_at | 2026-01-08 11:51:43.623943+00 |
| updated_at | 2026-01-17 03:26:25.219037+00 |
| description | A fast CLI tool to pack source code into a zip file, respecting `.gitignore`. |
| homepage | |
| repository | https://github.com/surkaa/srcpack |
| max_upload_size | |
| id | 2030042 |
| size | 68,144 |
srcpack is a blazing fast CLI tool to pack source code into a ZIP file, automatically respecting .gitignore rules.
It helps you back up or share your code without manually excluding node_modules, target, or .git folders.
cargo install srcpack
Run inside your project directory:
srcpack
# Pack a specific directory
srcpack path/to/project
# Specify output filename
srcpack --output my-backup.zip
# Manually exclude specific patterns (in addition to .gitignore)
srcpack --exclude "*.mp4" --exclude "secrets/"
# Compression Levels
srcpack --store # Store only (0 compression, fastest)
srcpack --fast # Fast compression
srcpack --best # Best compression (smallest size, slower)
# Analyze mode: Dry run to list files without zipping
srcpack --dry-run
# Analyze mode + Top files: Find the largest space consumers
srcpack --dry-run --top 20