#unicode-encoding #surrogate #unicode

wtf8

Implementation of the WTF-8 encoding. https://simonsapin.github.io/wtf-8/

4 releases

Uses old Rust 2015

0.1.0 Apr 20, 2021
0.0.3 Aug 10, 2016
0.0.2 Nov 14, 2014
0.0.1 Nov 14, 2014

#1983 in Text processing

Download history 2956/week @ 2025-09-11 2532/week @ 2025-09-18 4624/week @ 2025-09-25 2898/week @ 2025-10-02 3202/week @ 2025-10-09 4036/week @ 2025-10-16 4602/week @ 2025-10-23 4968/week @ 2025-10-30 3565/week @ 2025-11-06 4288/week @ 2025-11-13 5239/week @ 2025-11-20 4338/week @ 2025-11-27 5566/week @ 2025-12-04 5610/week @ 2025-12-11 3999/week @ 2025-12-18 2575/week @ 2025-12-25

18,671 downloads per month
Used in 35 crates (6 directly)

MIT license

46KB
950 lines

Implementation of the WTF-8 encoding.

This library uses Rust’s type system to maintain well-formedness, like the String and &str types do for UTF-8.

Since WTF-8 must not be used for interchange, this library deliberately does not provide access to the underlying bytes of WTF-8 strings, nor can it decode WTF-8 from arbitrary bytes. WTF-8 strings can be obtained from UTF-8, UTF-16, or code points.


rust-wtf8

Implementation of the WTF-8 encoding. Depends on the standard library’s alloc crate but not std.

Documentation

No runtime deps