Browse Source

Upgraded to ICU 1.2 (#2826)

This PR upgrades ICU to 1.2.

Unfortunately we still have some breaking changes, so this is being handled in https://github.com/unicode-org/icu4x/issues/3332


Co-authored-by: jedel1043 <jedel0124@gmail.com>
pull/2845/head
Iban Eguia Moraza 1 year ago
parent
commit
d288b63847
  1. 665
      Cargo.lock
  2. 22
      boa_engine/Cargo.toml
  3. 4
      boa_engine/src/context/icu.rs
  4. 8
      boa_icu_provider/Cargo.toml
  5. 2
      boa_icu_provider/README.md
  6. BIN
      boa_icu_provider/data/icudata.postcard

665
Cargo.lock generated

File diff suppressed because it is too large Load Diff

22
boa_engine/Cargo.toml

@ -27,6 +27,8 @@ intl = [
"dep:icu_list",
"dep:writeable",
"dep:sys-locale",
"dep:yoke",
"dep:zerofrom",
]
fuzz = ["boa_ast/arbitrary", "boa_interner/arbitrary"]
@ -76,16 +78,18 @@ thin-vec = "0.2.12"
# intl deps
boa_icu_provider = { workspace = true, optional = true }
icu_locid_transform = { version = "1.1.0", features = ["serde"], optional = true }
icu_locid = { version = "1.1.0", features = ["serde"], optional = true }
icu_datetime = { version = "1.1.0", features = ["serde", "experimental"], optional = true }
icu_calendar = { version = "1.1.0", optional = true }
icu_collator = { version = "1.1.0", features = ["serde"], optional = true }
icu_plurals = { version = "1.1.0", features = ["serde"], optional = true }
icu_provider = { version = "1.1.0", optional = true }
icu_list = { version = "1.1.0", features = ["serde"], optional = true }
icu_casemapping = { version = "0.7.1", features = ["serde"], optional = true}
icu_locid_transform = { version = "1.2.1", features = ["serde"], optional = true }
icu_locid = { version = "1.2.0", features = ["serde"], optional = true }
icu_datetime = { version = "1.2.0", features = ["serde", "experimental"], optional = true }
icu_calendar = { version = "1.2.0", optional = true }
icu_collator = { version = "1.2.0", features = ["serde"], optional = true }
icu_plurals = { version = "1.2.0", features = ["serde"], optional = true }
icu_provider = { version = "1.2.0", optional = true }
icu_list = { version = "1.2.0", features = ["serde"], optional = true }
icu_casemapping = { version = "0.7.2", features = ["serde"], optional = true}
writeable = { version = "0.5.2", optional = true }
yoke = { version = "0.7.1", optional = true }
zerofrom = { version = "0.1.2", optional = true }
sys-locale = { version = "0.3.0", optional = true }
[dev-dependencies]

4
boa_engine/src/context/icu.rs

@ -4,12 +4,12 @@ use icu_collator::{Collator, CollatorError, CollatorOptions};
use icu_list::{ListError, ListFormatter, ListLength};
use icu_locid_transform::{LocaleCanonicalizer, LocaleExpander, LocaleTransformError};
use icu_provider::{
yoke::{trait_hack::YokeTraitHack, Yokeable},
zerofrom::ZeroFrom,
AnyProvider, AsDeserializingBufferProvider, AsDowncastingAnyProvider, BufferProvider,
DataError, DataLocale, DataProvider, DataRequest, DataResponse, KeyedDataMarker, MaybeSendSync,
};
use serde::Deserialize;
use yoke::{trait_hack::YokeTraitHack, Yokeable};
use zerofrom::ZeroFrom;
use crate::builtins::intl::list_format::ListFormatType;

8
boa_icu_provider/Cargo.toml

@ -13,11 +13,11 @@ rust-version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
icu_provider = { version = "1.1.0", features = ["serde", "sync"] }
icu_provider_blob = "1.1.0"
icu_provider_adapters = { version = "1.1.0", features = ["serde"] }
icu_provider = { version = "1.2.0", features = ["serde", "sync"] }
icu_provider_blob = "1.2.0"
icu_provider_adapters = { version = "1.2.0", features = ["serde"] }
once_cell = {version = "1.17.1", default-features = false, features = ["critical-section"]}
icu_datagen = { version = "1.1.2", optional = true }
icu_datagen = { version = "1.2.1", optional = true }
log = { version = "0.4.17", optional = true }
simple_logger = { version = "4.1.0", optional = true }

2
boa_icu_provider/README.md

@ -8,5 +8,5 @@ used in the Boa engine to enable internationalization functionality.
To regenerate the data:
```bash
$ cargo run --bin boa-datagen --features bin
$ cargo run --release --bin boa-datagen --features bin
```

BIN
boa_icu_provider/data/icudata.postcard

Binary file not shown.
Loading…
Cancel
Save