Decision Workspace
embed_it vs include_dir vs resource
Side-by-side comparison of Rust crates
58
embed_it
stablev7.1.0
A proc-macro library for to create rust structs from file system entries and include content as a reference to a byte array.
56
include_dir
growingv0.7.4
Embed the contents of a directory in your binary
53
resource
growingv0.6.1
Macros for statically including assets in release mode, but dynamically loading them in debug mode. This is primarily intended for games, allowing you to both avoid file IO in release builds and dynamically reload assets in debug mode.
Core Metrics
| embed_it | include_dir | resource | |
|---|---|---|---|
| Health Score | 58 | 56 | 53 |
| Total Downloads | 7.1K | 43.3M | 121.6K |
| 30d Downloads | 28 | 3.7M | 8.3K |
| Dependents | 0 | 7.2K | 189 |
| Releases | 11 | 19 | 7 |
| Last Updated | 125d ago | 648d ago | 148d ago |
| Age | 1y 2m | 8y 9m | 7y 7m |
Health Breakdown
embed_it
Maintenance
13
Quality
22
Community
6
Popularity
5
Documentation
12
include_dir
Maintenance
4
Quality
17
Community
15
Popularity
8
Documentation
12
resource
Maintenance
8
Quality
17
Community
12
Popularity
6
Documentation
10
Technical Details
| embed_it | include_dir | resource | |
|---|---|---|---|
| Version | 7.1.0 | 0.7.4 | 0.6.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT | CC0-1.0 |
| Dependencies | 4 | 3 | 1 |
| Crate Size | 20KB | 6KB | 9KB |
| Features | 10 | 3 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | 1.85 | 1.64 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •embed_it leads with a health score of 58/100, but none of the options score above 80.
- •include_dir has the most downloads (43.3M), suggesting wider adoption.
- •include_dir is depended on by 7.2K crates — strongest ecosystem trust.
- •⚠ include_dir has not been updated in over a year.
- •include_dir, resource are pre-1.0 — API may change.