Decision Workspace
magic-db vs magic-embed vs pure-magic
Side-by-side comparison of Rust crates
53
magic-db
experimentalv0.6.0
This crate provides a precompiled magic database for file type identification. It allows any program to perform magic file detection without the burden of compiling rules from source.
51
magic-embed
experimentalv0.5.0
Proc-macro to embed a compiled magic database
51
pure-magic
experimentalv0.4.1
Safe Rust re-implementation of libmagic
Core Metrics
| magic-db | magic-embed | pure-magic | |
|---|---|---|---|
| Health Score | 53 | 51 | 51 |
| Total Downloads | 9.3K | 9.2K | 10.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 36 | 24 | 56 |
| Releases | 23 | 18 | 17 |
| Last Updated | 29d ago | 29d ago | 11d ago |
| Age | 10m | 10m | 10m |
Health Breakdown
magic-db
Maintenance
17
Quality
12
Community
7
Popularity
5
Documentation
12
magic-embed
Maintenance
17
Quality
10
Community
7
Popularity
5
Documentation
12
pure-magic
Maintenance
18
Quality
8
Community
8
Popularity
5
Documentation
12
Technical Details
| magic-db | magic-embed | pure-magic | |
|---|---|---|---|
| Version | 0.6.0 | 0.5.0 | 0.4.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | GPL-3.0 OR BSD-2-Clause | GPL-3.0 OR BSD-2-Clause | GPL-3.0 OR BSD-2-Clause |
| Dependencies | 2 | 5 | 18 |
| Crate Size | 593KB | 11KB | 72KB |
| Features | 1 | 0 | 0 |
| Yanked % | 4.3% | 5.6% | 5.9% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.88.0 | 1.88.0 | 1.88.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •magic-db leads with a health score of 53/100, but none of the options score above 80.
- •pure-magic has the most downloads (10.3K), suggesting wider adoption.