Language tag implementation

I would like to present my implemetation of language tags in Rust. language-tags is my first crate, it is hosted on GitHub and I uploaded it to Crates.io. It parses language tags like en-US into useful parts, like language and region for example. These tags then can be compared or printed out again. To create language tags it provides the langtag! macro.

The code is already used in Hyper for the Accept-Language and Content-Language headers.

I am very interested in getting code review either here or on Stack Exchange Code Review.
http://codereview.stackexchange.com/questions/95890/rust-language-tag-implementation

I cross post this here because there are not many questions about Rust yet.

1 Like