Decision Workspace
include_dir_as_map vs actix-web-static-files vs static-serve-macro
Side-by-side comparison of Rust crates
45
include_dir_as_map
growingv1.1.0
Embed files from a directory as a hashmap in the rust binary
62
actix-web-static-files
growingv4.1.1
actix-web static files as resources support.
61
static-serve-macro
experimentalv0.5.0
A helper for compressing and embedding static assets in an Axum webserver
Core Metrics
| include_dir_as_map | actix-web-static-files | static-serve-macro | |
|---|---|---|---|
| Health Score | 45 | 62 | 61 |
| Total Downloads | 3.3K | 426.0K | 11.9K |
| 30d Downloads | 22 | 21.8K | 686 |
| Dependents | 0 | 125 | 25 |
| Releases | 2 | 34 | 8 |
| Last Updated | 853d ago | 201d ago | 48d ago |
| Age | 2y 6m | 6y 7m | 12m |
Health Breakdown
include_dir_as_map
Maintenance
4
Quality
21
Community
6
Popularity
4
Documentation
10
actix-web-static-files
Maintenance
10
Quality
21
Community
12
Popularity
7
Documentation
12
static-serve-macro
Maintenance
17
Quality
12
Community
15
Popularity
5
Documentation
12
Technical Details
| include_dir_as_map | actix-web-static-files | static-serve-macro | |
|---|---|---|---|
| Version | 1.1.0 | 4.1.1 | 0.5.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | Unlicense OR MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 5 | 10 |
| Crate Size | 3KB | 13KB | 15KB |
| Features | 1 | 3 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.82 | 1.88 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •actix-web-static-files leads with a health score of 62/100, but none of the options score above 80.
- •actix-web-static-files is depended on by 125 crates — strongest ecosystem trust.
- •⚠ include_dir_as_map has not been updated in over a year.
- •static-serve-macro is pre-1.0 — API may change.