I wrote an implementation of text encoding/decoding for ISO*<->Unicode in Rust, available here: https://github.com/haard/rust-codecs
I use approximately the same technique as the cpython implementation, and it works by parsing unicode.org specifications and generating Rust source; a charmap for each encoding and a codecs.rs which can be used to encode/decode text. The implementation depends on std::unicode being public, which it is not right now. Although it is in need of cleanup, more than the single naive testcase, and adding stream handling etc to the API, since I got a working version (aka the fun part), I thought it best to ask if an implementation along those lines could be considered for inclusion? If so I'll dedicate some time to clean it up, otherwise I'll find something else to work on instead. Regards, fredrik _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
