Decision Workspace
stun-client vs rift-nat vs dig-nat
Side-by-side comparison of Rust crates
39
stun-client
growingv0.1.4
This is a simple async_std based asynchronous STUN client library.
51
rift-nat
experimentalv0.1.4
NAT traversal, STUN, and TURN support for Rift P2P
48
dig-nat
experimentalv0.21.2
Abstract NAT traversal for DIG Node peer connections — one connect() API over direct, UPnP/IGD, NAT-PMP, PCP, relay-coordinated hole-punch, and relay.dig.net as last-resort fallback; establishes an mTLS peer connection with peer_id = SHA256(TLS SPKI DER).
Core Metrics
| stun-client | rift-nat | dig-nat | |
|---|---|---|---|
| Health Score | 39 | 51 | 48 |
| Total Downloads | 9.9K | 549 | 10.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 15 | 115 |
| Releases | 4 | 5 | 30 |
| Last Updated | 1181d ago | 241d ago | 34d ago |
| Age | 5y 5m | 8m | 2m |
Health Breakdown
stun-client
Maintenance
3
Quality
13
Community
6
Popularity
5
Documentation
12
rift-nat
Maintenance
15
Quality
12
Community
8
Popularity
3
Documentation
13
dig-nat
Maintenance
11
Quality
9
Community
11
Popularity
5
Documentation
12
Technical Details
| stun-client | rift-nat | dig-nat | |
|---|---|---|---|
| Version | 0.1.4 | 0.1.4 | 0.21.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | Apache-2.0 OR MIT | Apache-2.0 OR MIT |
| Dependencies | 9 | 11 | 29 |
| Crate Size | 20KB | 20KB | 267KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | — | 1.75.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •rift-nat leads with a health score of 51/100, but none of the options score above 80.
- •dig-nat has the most downloads (10.1K), suggesting wider adoption.
- •dig-nat is depended on by 115 crates — strongest ecosystem trust.
- •⚠ stun-client has not been updated in over a year.