#unicode #surrogate #encoding

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

#1657 in Text processing

Download history 2565/week @ 2024-11-16 2084/week @ 2024-11-23 2193/week @ 2024-11-30 2670/week @ 2024-12-07 2224/week @ 2024-12-14 1659/week @ 2024-12-21 1676/week @ 2024-12-28 2162/week @ 2025-01-04 2999/week @ 2025-01-11 2267/week @ 2025-01-18 2452/week @ 2025-01-25 2229/week @ 2025-02-01 2167/week @ 2025-02-08 2407/week @ 2025-02-15 3020/week @ 2025-02-22 2629/week @ 2025-03-01

10,499 downloads per month
Used in 32 crates (4 directly)

MIT license

46KB
950 lines

rust-wtf8

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

Documentation


lib.rs:

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.

No runtime deps