Decision Workspace
dig-stun vs rift-nat vs dig-nat
Side-by-side comparison of Rust crates
47
dig-stun
experimentalv0.2.0
RFC 5389 STUN codec, client, address-scope table, peer observation and agreement — how a DIG node learns and believes its public address.
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
| dig-stun | rift-nat | dig-nat | |
|---|---|---|---|
| Health Score | 47 | 51 | 48 |
| Total Downloads | 1.4K | 549 | 10.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 15 | 115 |
| Releases | 2 | 5 | 30 |
| Last Updated | 34d ago | 241d ago | 34d ago |
| Age | 1m | 8m | 2m |
Health Breakdown
dig-stun
Maintenance
12
Quality
13
Community
6
Popularity
4
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
| dig-stun | rift-nat | dig-nat | |
|---|---|---|---|
| Version | 0.2.0 | 0.1.4 | 0.21.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 OR MIT | Apache-2.0 OR MIT | Apache-2.0 OR MIT |
| Dependencies | 4 | 11 | 29 |
| Crate Size | 100KB | 20KB | 267KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.75.0 | — | 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.