Crate boa_icu_provider

Crate boa_icu_provider 

Source
Expand description

Boa’s boa_icu_provider exports the default data provider used by its Intl implementation.

§Crate Overview

This crate exports the function buffer, which contains an extensive dataset of locale data to enable Intl functionality in the engine. The set of locales included is precisely the “modern” subset of locales in the Unicode Common Locale Data Repository.

If you need to support the full set of locales, you can check out the ICU4X guide about generating custom data providers. Boa supports plugging any BufferProviders generated by the tool.

§About Boa

Boa is an open-source, experimental ECMAScript Engine written in Rust for lexing, parsing and executing ECMAScript/JavaScript. Currently, Boa supports some of the language. More information can be viewed at Boa’s website.

Try out the most recent release with Boa’s live demo playground.

§Boa Crates

  • boa_cli - Boa’s CLI && REPL implementation
  • boa_ast - Boa’s ECMAScript Abstract Syntax Tree.
  • boa_engine - Boa’s implementation of ECMAScript builtin objects and execution.
  • boa_gc - Boa’s garbage collector.
  • boa_icu_provider - Boa’s ICU4X data provider.
  • boa_interner - Boa’s string interner.
  • boa_macros - Boa’s macros.
  • boa_parser - Boa’s lexer and parser.
  • boa_runtime - Boa’s WebAPI features.
  • boa_string - Boa’s ECMAScript string implementation.
  • tag_ptr - Utility library that enables a pointer to be associated with a tag of type usize.
  • small_btree - Utility library that adds the SmallBTreeMap data structure.

Functions§

buffer
Gets the default data provider stored as a DynamicDryDataProvider<BufferMarker>.