Decision Workspace
stun-coder vs dig-nat vs shadow-nat-traversal
Side-by-side comparison of Rust crates
41
stun-coder
growingv2.0.0
A STUN protocol encoder and decoder for Rust. The implementation is done according to Session Traversal Utilities for NAT (STUN). STUN extensions specified by the Interactive Connectivity Establishment (ICE) protocol are also supported.
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).
37
shadow-nat-traversal
experimentalv0.1.0
NAT traversal with STUN/TURN and hole punching for Shadow Network
Core Metrics
| stun-coder | dig-nat | shadow-nat-traversal | |
|---|---|---|---|
| Health Score | 41 | 48 | 37 |
| Total Downloads | 4.2K | 10.1K | 225 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 115 | 2 |
| Releases | 3 | 30 | 1 |
| Last Updated | 1599d ago | 34d ago | 218d ago |
| Age | 5y 2m | 2m | 7m |
Health Breakdown
stun-coder
Maintenance
4
Quality
18
Community
6
Popularity
4
Documentation
9
dig-nat
Maintenance
11
Quality
9
Community
11
Popularity
5
Documentation
12
shadow-nat-traversal
Maintenance
4
Quality
12
Community
6
Popularity
3
Documentation
12
Technical Details
| stun-coder | dig-nat | shadow-nat-traversal | |
|---|---|---|---|
| Version | 2.0.0 | 0.21.2 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | Apache-2.0 OR MIT | MIT |
| Dependencies | 10 | 29 | 11 |
| Crate Size | 25KB | 267KB | 16KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.75.0 | 1.70 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •dig-nat leads with a health score of 48/100, but none of the options score above 80.
- •dig-nat is depended on by 115 crates — strongest ecosystem trust.
- •⚠ stun-coder has not been updated in over a year.
- •dig-nat, shadow-nat-traversal are pre-1.0 — API may change.