6 releases

0.4.0 Aug 15, 2018
0.3.3 Aug 7, 2018
0.3.1 Jul 30, 2018
0.2.0 Jul 25, 2018

#6 in Internationalization (i18n)

Download history 4/week @ 2018-07-25 45/week @ 2018-08-01 78/week @ 2018-08-08 112/week @ 2018-08-15 34/week @ 2018-08-22 4/week @ 2018-08-29 6/week @ 2018-09-05 8/week @ 2018-09-12 2/week @ 2018-09-19 13/week @ 2018-09-26 9/week @ 2018-10-03 2/week @ 2018-10-10

88 downloads per month

Apache-2.0/MIT

43KB
682 lines

Make Plural Rules

make_pluralrules is a coe generator applications that turns a Unicode CLDR plural rules AST into Rust code.

crates.io Build Status Coverage Status

The application is intended to generate code necessary for calculating correct plural rules categories.

Status

The generator currently generates code for cardinal plural rules from CLDR 33 into Rust 1.27 and above.

Launch make_pluralrules with:

cargo run -- -i <./path/to/cldr.json>... -o <./path/to/output.rs>

Local Development

cargo build
cargo test

If you want to update the test fixtures to match your latest changes, please use:

cargo regenerate-fixtures_within | cargo regenerate-fixtures

When submitting a PR please use cargo fmt.

Contributors

Thank you to all contributors!

Dependencies

~3.5MB
~70K SLoC