Le 29/07/2013 18:58, Fredrik Håård a écrit :
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.

Hi,

This looks great, thanks a lot for sharing!

Please choose a software license (preferably an open-source one ;)) and add a LICENSE file to the repository.

Servo will eventually need an implementation (ideally in Rust) of http://encoding.spec.whatwg.org/ , which has a lot in common with what you’re doing.

Cheers,
--
Simon Sapin
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to