Decision Workspace
libnss-host4 vs dns-lookup vs gethostname
Side-by-side comparison of Rust crates
52
libnss-host4
experimentalv0.2.2
A convenient way to implement the glibc gethostbyname4_r NSS host API
72
dns-lookup
stablev4.0.2
A simple DNS resolving API, including getaddrinfo and getnameinfo wrappers for libc variants.
64
gethostname
growingv1.1.0
gethostname for all platforms
Core Metrics
| libnss-host4 | dns-lookup | gethostname | |
|---|---|---|---|
| Health Score | 52 | 72 | 64 |
| Total Downloads | 83 | 31.4M | 130.0M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1.7K | 4.0K |
| Releases | 4 | 35 | 15 |
| Last Updated | 130d ago | 9d ago | 360d ago |
| Age | 4m | 10y 6m | 7y 8m |
Health Breakdown
libnss-host4
Maintenance
18
Quality
14
Community
6
Popularity
2
Documentation
12
dns-lookup
Maintenance
17
Quality
20
Community
12
Popularity
8
Documentation
15
gethostname
Maintenance
7
Quality
19
Community
15
Popularity
8
Documentation
15
Technical Details
| libnss-host4 | dns-lookup | gethostname | |
|---|---|---|---|
| Version | 0.2.2 | 4.0.2 | 1.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 |
| Dependencies | 2 | 4 | 2 |
| Crate Size | 17KB | 15KB | 10KB |
| Features | 0 | 1 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.88 | 1.63 | 1.71 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •dns-lookup leads with a health score of 72/100, but none of the options score above 80.
- •gethostname has the most downloads (130.0M), suggesting wider adoption.
- •gethostname is depended on by 4.0K crates — strongest ecosystem trust.
- •libnss-host4 is pre-1.0 — API may change.