icuproviderblob crates.io

icu_provider_blob contains implementations of the [ICU4X] [DataProvider] interface that load data from a single blob.

Currently, this crate supports only static blobs, but it will soon support blobs loaded dynamically at runtime (see #848).

To build blob data, use the --format blob option of [icu4x-datagen]. For example, to build "hello world" data, run:

bash $ cargo run --bin=icu4x-datagen -- \ -v \ --format blob \ --hello-world-key \ --all-locales \ --out hello_world.postcard

Example

Create a [StaticDataProvider] from pre-built test data:

rust let _ = icu_testdata::get_static_provider();

More Information

For more information on development, authorship, contributing etc. please visit ICU4X home page.