Crates.io | make_pluralrules |
lib.rs | make_pluralrules |
version | 0.5.0 |
source | src |
created_at | 2018-07-25 23:12:25.828884 |
updated_at | 2019-11-13 19:46:26.370609 |
description | A Rustcode generator for CLDR plural rules. |
homepage | |
repository | https://github.com/unclenachoduh/pluralrules |
max_upload_size | |
id | 75985 |
size | 208,954 |
make_pluralrules
is a code generator application that turns a Unicode CLDR plural rules AST into Rust code.
The application is intended to generate code necessary for calculating correct plural rules categories.
The generator currently generates code for cardinal plural rules from CLDR 34 into Rust 1.31 and above.
Launch make_pluralrules with:
cargo run -- -i <./path/to/cldr.json>... -o <./path/to/output.rs>
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
.
Thank you to all contributors!