make_pluralrules

Crates.iomake_pluralrules
lib.rsmake_pluralrules
version0.5.0
sourcesrc
created_at2018-07-25 23:12:25.828884
updated_at2019-11-13 19:46:26.370609
descriptionA Rustcode generator for CLDR plural rules.
homepage
repositoryhttps://github.com/unclenachoduh/pluralrules
max_upload_size
id75985
size208,954
Manish Goregaokar (Manishearth)

documentation

README

Make Plural Rules

make_pluralrules is a code generator application 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 34 into Rust 1.31 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!

Commit count: 205

cargo fmt