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

#215 in #encoding

Download history 81/week @ 2022-06-11 77/week @ 2022-06-18 109/week @ 2022-06-25 86/week @ 2022-07-02 112/week @ 2022-07-09 174/week @ 2022-07-16 188/week @ 2022-07-23 272/week @ 2022-07-30 199/week @ 2022-08-06 181/week @ 2022-08-13 173/week @ 2022-08-20 157/week @ 2022-08-27 198/week @ 2022-09-03 249/week @ 2022-09-10 174/week @ 2022-09-17 132/week @ 2022-09-24

791 downloads per month
Used in 7 crates (3 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