rustio rustio.net

hostname vs gethostname vs hostname-validator

Side-by-side comparison of Rust crates

Core Metrics

hostnamegethostnamehostname-validator
Health Score636754
Total Downloads140.3M71.9M4.8M
30d Downloads8.6M5.5M920.1K
Dependents6.4K2.6K304
Releases12153
Last Updated119d ago164d ago1462d ago
Age9y 3m7y 2m7y 4m

Health Breakdown

hostname
Maintenance
10
Quality
16
Community
17
Popularity
8
Documentation
12
gethostname
Maintenance
10
Quality
19
Community
15
Popularity
8
Documentation
15
hostname-validator
Maintenance
3
Quality
21
Community
14
Popularity
8
Documentation
8

Technical Details

hostnamegethostnamehostname-validator
Version0.4.21.1.01.1.1
Stable (≥1.0)✗ No✓ Yes✓ Yes
LicenseMITApache-2.0MIT
Dependencies620
Crate Size13KB10KB2KB
Features200
Yanked %0.0%0.0%0.0%
Edition20212021
MSRV1.741.71
Owners212

Quick Verdict

  • gethostname leads with a health score of 67/100, but none of the options score above 80.
  • hostname has the most downloads (140.3M), suggesting wider adoption.
  • hostname is depended on by 6.4K crates — strongest ecosystem trust.
  • ⚠ hostname-validator has not been updated in over a year.
  • hostname is pre-1.0 — API may change.