Decision Workspace
wstr vs widestring vs nt-string
Side-by-side comparison of Rust crates
39
wstr
growingv0.2.0
Macros for compile-time UTF-16 (wide) string literals.
63
widestring
growingv1.2.1
A wide string Rust library for converting to and from wide strings, such as those often used in Windows API or other FFI libaries. Both `u16` and `u32` string types are provided, including support for UTF-16 and UTF-32, malformed encoding, C-style strings, etc.
52
nt-string
growingv0.1.1
Idiomatic Rust implementations for various Windows string types
Core Metrics
| wstr | widestring | nt-string | |
|---|---|---|---|
| Health Score | 39 | 63 | 52 |
| Total Downloads | 6.9K | 71.9M | 257.7K |
| 30d Downloads | 84 | 4.7M | 16.4K |
| Dependents | 3 | 2.5K | 35 |
| Releases | 2 | 18 | 2 |
| Last Updated | 3069d ago | 170d ago | 1019d ago |
| Age | 9y | 10y 2m | 2y 10m |
Health Breakdown
wstr
Maintenance
3
Quality
15
Community
8
Popularity
5
Documentation
8
widestring
Maintenance
9
Quality
19
Community
15
Popularity
8
Documentation
12
nt-string
Maintenance
4
Quality
17
Community
10
Popularity
6
Documentation
15
Technical Details
| wstr | widestring | nt-string | |
|---|---|---|---|
| Version | 0.2.0 | 1.2.1 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 3 | 2 |
| Crate Size | 2KB | 90KB | 65KB |
| Features | 0 | 4 | 4 |
| Yanked % | 0.0% | 5.6% | 0.0% |
| Edition | — | 2021 | 2021 |
| MSRV | — | 1.58 | 1.58 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •widestring leads with a health score of 63/100, but none of the options score above 80.
- •widestring is depended on by 2.5K crates — strongest ecosystem trust.
- •⚠ wstr, nt-string have not been updated in over a year.
- •wstr, nt-string are pre-1.0 — API may change.