#cldr #icu #unicode #localization #blob #provider

icu_provider_blob

ICU4X data provider that reads from blobs in memory

2 unstable releases

0.4.0 Nov 2, 2021
0.3.0 Jul 30, 2021

#20 in #cldr

Download history 78/week @ 2021-10-01 2/week @ 2021-10-08 33/week @ 2021-10-15 22/week @ 2021-10-22 16/week @ 2021-10-29 6/week @ 2021-11-05 4/week @ 2021-11-19 16/week @ 2021-11-26 46/week @ 2021-12-03 31/week @ 2021-12-10 23/week @ 2021-12-17 25/week @ 2021-12-24 5/week @ 2021-12-31 38/week @ 2022-01-07 11/week @ 2022-01-14

79 downloads per month
Used in 7 crates (2 directly)

Custom license

395KB
5.5K SLoC

icu_provider_blob crates.io

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

There are two exports:

  1. [BlobDataProvider] supports data blobs loaded dynamically at runtime.
  2. [StaticDataProvider] supports data blobs baked into the binary at compile time.

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

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

Example

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

let _ = icu_testdata::get_static_provider();

For more examples, see the specific data providers.

More Information

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

Dependencies

~0.8–1.4MB
~30K SLoC

a