commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
d91697c2760e65fff815ef2a5f968a6cd5d3d25f | Elango | 2022-04-14T20:28:37 | Use 0 for error value for Rust out-of-bounds in CPT for primitive trie value types (#1804) | diff --git a/utils/codepointtrie/src/codepointtrie.rs b/utils/codepointtrie/src/codepointtrie.rs
index 637fa875e7..0ddc98448d 100644
--- a/utils/codepointtrie/src/codepointtrie.rs
+++ b/utils/codepointtrie/src/codepointtrie.rs
@@ -51,7 +51,7 @@ pub trait TrieValue: Copy + Eq + PartialEq + zerovec::ule::AsULE + 'static ... | 1 | 3 | 3 |
7d75be3ddb6d10fd178aa2a0651cfde65f40edbe | Shane F. Carr | 2022-04-13T15:53:57 | Replace OmnibusDataProvider with make_forking_provider (#1788) | diff --git a/provider/core/src/datagen/mod.rs b/provider/core/src/datagen/mod.rs
index 03118424e1..e1030eb6eb 100644
--- a/provider/core/src/datagen/mod.rs
+++ b/provider/core/src/datagen/mod.rs
@@ -14,27 +14,3 @@ mod iter;
pub use data_conversion::{DataConverter, ReturnedPayloadError};
pub use heap_measure::{HeapSta... | 21 | 367 | 204 |
252ac244262a7dd2cb0bf5696dcb631e736e9373 | Gollapudi Vamsi Krishna | 2022-04-06T13:43:27 | Add indian calendar (#1715) | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
index 94af6e46ec..f1bae4b7c8 100644
--- a/components/calendar/src/calendar_arithmetic.rs
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -3,6 +3,7 @@
// (online at: https://github.com/unicode-org/icu4x/... | 4 | 235 | 0 |
a52b2f6c2fef2fbaf22aa3b3aec56ac97f3ac42d | Manish Goregaokar | 2022-04-06T01:29:35 | Bump yoke to 0.5.0 (#1776) | diff --git a/Cargo.lock b/Cargo.lock
index 2fc502da85..fa55e188fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3191,7 +3191,7 @@ dependencies = [
[[package]]
name = "yoke"
-version = "0.4.1"
+version = "0.5.0"
dependencies = [
"bincode",
"serde",
@@ -3202,7 +3202,7 @@ dependencies = [
[[package]]
name = "y... | 11 | 15 | 15 |
450e6bc6ae148e40d4938c81d7978a089b9c400a | Shane F. Carr | 2022-04-06T01:16:44 | Add setters for Unicode Keywords and Transform Fields (#1768) | diff --git a/components/locid/src/extensions/transform/fields.rs b/components/locid/src/extensions/transform/fields.rs
index a2408b183e..67782c123e 100644
--- a/components/locid/src/extensions/transform/fields.rs
+++ b/components/locid/src/extensions/transform/fields.rs
@@ -148,6 +148,36 @@ impl Fields {
self.... | 4 | 61 | 24 |
1193250b38d5ad227abd7578a89dc6dca9cae6b4 | Shane F. Carr | 2022-04-06T00:49:53 | Add unicode_ext_value! macro, enabled by new helper ShortVec (#1767) | diff --git a/components/locid/src/extensions/unicode/value.rs b/components/locid/src/extensions/unicode/value.rs
index 31bb478346..94f57ac853 100644
--- a/components/locid/src/extensions/unicode/value.rs
+++ b/components/locid/src/extensions/unicode/value.rs
@@ -2,8 +2,8 @@
// called LICENSE at the top level of the IC... | 3 | 147 | 13 |
2cdcd0c777ef63accc95ca7b8881f61ea71ea600 | Manish Goregaokar | 2022-04-05T21:36:10 | Add support for defaults in generics in ZeroFrom and Yokeable derives (#1774)
* Add support for defaults in generics in ZeroFrom and Yokeable derives | diff --git a/utils/yoke/derive/examples/yoke_derive.rs b/utils/yoke/derive/examples/yoke_derive.rs
index ef2c25588a..a011d5c241 100644
--- a/utils/yoke/derive/examples/yoke_derive.rs
+++ b/utils/yoke/derive/examples/yoke_derive.rs
@@ -24,6 +24,12 @@ pub struct GenericsExample<T> {
y: T,
}
+#[derive(Yokeable, Co... | 4 | 36 | 2 |
7b24c775d00d3de54df797f084f196200fa3d65e | Manish Goregaokar | 2022-04-02T03:27:03 | Add multiple field support to make_varule (#1693)
* Allow non-tuple structs to have VarULE fields in any position
* Add MultiFieldsULE
* Add multiple field support to make_varule | diff --git a/utils/zerovec/derive/examples/make_var.rs b/utils/zerovec/derive/examples/make_var.rs
index 0c4bdaf7c4..2361f4e998 100644
--- a/utils/zerovec/derive/examples/make_var.rs
+++ b/utils/zerovec/derive/examples/make_var.rs
@@ -17,6 +17,17 @@ struct VarStruct<'a> {
c: Cow<'a, str>,
}
+#[make_varule(VarSt... | 11 | 659 | 153 |
09cd22c35bdb00c19757d70309c4e756b4f941bf | Manish Goregaokar | 2022-04-02T01:04:01 | Fixup t_with_ser error (#1766) | diff --git a/utils/zerovec/src/map/serde.rs b/utils/zerovec/src/map/serde.rs
index a201f10afc..ade45ce7a6 100644
--- a/utils/zerovec/src/map/serde.rs
+++ b/utils/zerovec/src/map/serde.rs
@@ -28,12 +28,12 @@ where
// than numbers and strings as map keys. For them, we can serialize
// as a vec o... | 1 | 3 | 3 |
552a1edd517b59c9b192ef36cd9ac1039e1d1f09 | Shane F. Carr | 2022-04-02T00:14:08 | Convert Unicode Keywords and Transform Fields to LiteMap (#1762) | diff --git a/Cargo.lock b/Cargo.lock
index 7220cfec41..50b8f25219 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1380,6 +1380,7 @@ dependencies = [
"displaydoc",
"icu",
"icu_benchmark_macros",
+ "litemap",
"serde",
"serde_json",
"tinystr 0.5.0",
diff --git a/components/locid/Cargo.toml b/components/locid/Carg... | 12 | 181 | 122 |
579b7a52c50780af63a1f5fbd7b132fbd0ce7adc | Manish Goregaokar | 2022-04-02T00:04:45 | Support non-Ord values in ZeroMap (#1743) | diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs
index 98a2b91e22..7cc8d144ec 100644
--- a/utils/zerovec/src/map/borrowed.rs
+++ b/utils/zerovec/src/map/borrowed.rs
@@ -119,7 +119,15 @@ where
pub fn is_empty(&self) -> bool {
self.values.zvl_len() == 0
}
+}
+impl<'a... | 8 | 176 | 118 |
e265c6023a7fcad356632274177359e1ab9d5fa8 | Robert Bastian | 2022-04-01T23:49:32 | Removing CLDR 40 compatibility (#1765) | diff --git a/provider/datagen/src/bin/datagen.rs b/provider/datagen/src/bin/datagen.rs
index 6906150c9f..bfd78a68d6 100644
--- a/provider/datagen/src/bin/datagen.rs
+++ b/provider/datagen/src/bin/datagen.rs
@@ -85,8 +85,8 @@ fn main() -> eyre::Result<()> {
.long("cldr-tag")
.value_name... | 2 | 13 | 14 |
0188c9c623b46c9390a26024704291a7f93f0a6d | Shane F. Carr | 2022-04-01T05:01:33 | Add transform_ext_key! macro (#1763) | diff --git a/components/locid/src/extensions/transform/key.rs b/components/locid/src/extensions/transform/key.rs
index 2305c0f28d..db5c655ded 100644
--- a/components/locid/src/extensions/transform/key.rs
+++ b/components/locid/src/extensions/transform/key.rs
@@ -41,12 +41,15 @@ impl Key {
///
/// assert_eq!(k... | 2 | 51 | 2 |
8b97e42cbd2dbcbcd3abf7ee350c0153361f1f64 | Shane F. Carr | 2022-04-01T02:19:14 | Add unicode_key! macro (#1759) | diff --git a/components/locid/src/extensions/unicode/key.rs b/components/locid/src/extensions/unicode/key.rs
index 50253c6a4e..9203bff83b 100644
--- a/components/locid/src/extensions/unicode/key.rs
+++ b/components/locid/src/extensions/unicode/key.rs
@@ -42,7 +42,7 @@ impl Key {
///
/// assert_eq!(key, "ca");... | 2 | 51 | 2 |
93b64e3fec45d77ef391257e7f161f82d83f9e21 | Robert Bastian | 2022-03-31T17:01:57 | impl_auto_deserializing doc (#1755) | diff --git a/provider/core/src/serde/de.rs b/provider/core/src/serde/de.rs
index ed08215c00..c0a12ec3cc 100644
--- a/provider/core/src/serde/de.rs
+++ b/provider/core/src/serde/de.rs
@@ -154,6 +154,8 @@ where
}
}
+/// Implements [ResourceProvider] and [DynProvider] if [BufferProvider] is implemented.
+/// This ... | 1 | 2 | 0 |
f0caf5a1ed64809b2107a0258b8a6323aca689e9 | Shane F. Carr | 2022-03-31T16:38:00 | Improve check_is! macro (#1701) | diff --git a/utils/tinystr/src/ascii.rs b/utils/tinystr/src/ascii.rs
index 3f50c96911..3f2233cdf7 100644
--- a/utils/tinystr/src/ascii.rs
+++ b/utils/tinystr/src/ascii.rs
@@ -166,11 +166,11 @@ impl<const N: usize> TinyAsciiStr<N> {
}
macro_rules! check_is {
- ($self:ident, $check:ident, $check_u8:ident) => {
+ ... | 1 | 14 | 17 |
cd8d95720098e70d885dbd7a31261cf20205c894 | Shane F. Carr | 2022-03-31T16:17:48 | Change Locale internals to Vec and add retain_by_key functions (#1737) | diff --git a/components/locid/src/extensions/other/mod.rs b/components/locid/src/extensions/other/mod.rs
index 6132b800f1..6cc89123d9 100644
--- a/components/locid/src/extensions/other/mod.rs
+++ b/components/locid/src/extensions/other/mod.rs
@@ -21,8 +21,8 @@
//! ```
//!
//! [`Keys`]: Key
+
mod key;
-use alloc::bo... | 9 | 93 | 76 |
18c3eb85fd8e46d1352e0f766fdeeab1cdef200a | Shane F. Carr | 2022-03-31T15:24:38 | Add documentation for zero-copy locales (#1749) | diff --git a/components/locid/src/lib.rs b/components/locid/src/lib.rs
index e4fb816a83..cacaf4dcaa 100644
--- a/components/locid/src/lib.rs
+++ b/components/locid/src/lib.rs
@@ -88,6 +88,8 @@ mod parser;
#[cfg(feature = "serde")]
mod serde;
pub mod subtags;
+#[cfg(feature = "zerovec")]
+pub mod zerovec;
pub use ... | 2 | 123 | 0 |
feb1c9b4d17958fb837076b8a3aaabe41d6ec15e | Zibi Braniecki | 2022-03-31T03:17:24 | Add convenience From<subtag> for LanguageIdentifier and Locale (#1753) | diff --git a/components/locid/src/langid.rs b/components/locid/src/langid.rs
index bb4d4f6eee..9f84252e76 100644
--- a/components/locid/src/langid.rs
+++ b/components/locid/src/langid.rs
@@ -324,3 +324,106 @@ impl PartialEq<str> for LanguageIdentifier {
iter.next() == None
}
}
+
+/// # Examples
+///
+///... | 2 | 204 | 0 |
cb23c585250a7f2e5d7ff02cd8bbd45815a72c8d | Shane F. Carr | 2022-03-30T20:40:43 | Add Locale Extensions retain_by_type (#1726) | diff --git a/components/locid/src/extensions/mod.rs b/components/locid/src/extensions/mod.rs
index 3eeed721a7..e9ceab48bd 100644
--- a/components/locid/src/extensions/mod.rs
+++ b/components/locid/src/extensions/mod.rs
@@ -135,6 +135,45 @@ impl Extensions {
&& self.other.is_empty()
}
+ /// Retain... | 5 | 118 | 2 |
b544d9595e762f6a261e0227585a355766e10d72 | Robert Bastian | 2022-03-30T17:01:32 | Simplifying file IO and runtime data provider code (#1752) | diff --git a/experimental/segmenter_lstm/tests/lstm_test.rs b/experimental/segmenter_lstm/tests/lstm_test.rs
index dd76c839f0..3b7edec00d 100644
--- a/experimental/segmenter_lstm/tests/lstm_test.rs
+++ b/experimental/segmenter_lstm/tests/lstm_test.rs
@@ -9,7 +9,6 @@ use icu_segmenter_lstm::structs;
use serde::{Deseria... | 5 | 77 | 181 |
11364f02c2e620e8e85a1bc7fab3e320d226152e | Robert Bastian | 2022-03-29T03:27:49 | Reducing file IO and parsing in CLDR transformers (#1623) | diff --git a/Cargo.lock b/Cargo.lock
index 12ae6ef23c..53479e4eaf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -621,6 +621,15 @@ version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
+[[package]]
+name = "elsa"... | 11 | 393 | 524 |
7eeafcc3fab59fc9c90d2df5cf9ca3664c7df8c2 | Manish Goregaokar | 2022-03-26T20:50:32 | Add OptionULE and OptionVarULE (#1736)
* Add OptionULE
* tests
* git add
* add OptionVarULE
* review comments
* add KV impl for OptionVarULE
* add test
* clarify
* fix
* clip | diff --git a/utils/zerovec/derive/examples/make.rs b/utils/zerovec/derive/examples/make.rs
index a81b50c3b6..13a82d6c1f 100644
--- a/utils/zerovec/derive/examples/make.rs
+++ b/utils/zerovec/derive/examples/make.rs
@@ -10,7 +10,7 @@ use zerovec::*;
struct Struct {
a: u8,
b: u32,
- c: char,
+ c: Option<... | 4 | 269 | 4 |
c53194da5a76593641b818447d44846fbb538c78 | Shane F. Carr | 2022-03-25T04:56:03 | Run docs tests that failed prior to Rust 1.57 and update links (#1732) | diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs
index 30a86f99ab..b1d2e97a5f 100644
--- a/provider/core/src/data_provider.rs
+++ b/provider/core/src/data_provider.rs
@@ -455,10 +455,7 @@ where
///
/// Same example as above, but this time, do not move out of `p1`:
///
... | 2 | 44 | 102 |
5bd67c85323246891bc7aaf4b983136407929e52 | Manish Goregaokar | 2022-03-24T17:46:22 | Export registry in datagen crate (#1714) | diff --git a/tools/datagen/src/bin/verify-zero-copy.rs b/tools/datagen/src/bin/verify-zero-copy.rs
index 59d47e103b..8e3fb6bd6e 100644
--- a/tools/datagen/src/bin/verify-zero-copy.rs
+++ b/tools/datagen/src/bin/verify-zero-copy.rs
@@ -5,11 +5,11 @@
use clap::{App, Arg, ArgGroup};
use icu_datagen::get_all_keys;
use i... | 2 | 33 | 20 |
d9756b8bf21515807c6ce920db800884ef06e3c5 | Shane F. Carr | 2022-03-24T16:21:52 | Improvements to FixedDecimal f64 APIs (#1718) | diff --git a/ffi/diplomat/src/fixed_decimal.rs b/ffi/diplomat/src/fixed_decimal.rs
index 8697ccb737..850f18fb03 100644
--- a/ffi/diplomat/src/fixed_decimal.rs
+++ b/ffi/diplomat/src/fixed_decimal.rs
@@ -44,7 +44,7 @@ pub mod ffi {
/// See [the Rust docs](https://unicode-org.github.io/icu4x-docs/doc/fixed_decim... | 3 | 38 | 19 |
a4c650b3cf434a6a803b7e1e2c8443740a5ae3f7 | Shane F. Carr | 2022-03-24T15:14:11 | Treat ZeroMap sort order as an optional invariant (#1727) | diff --git a/utils/zerovec/src/map/map.rs b/utils/zerovec/src/map/map.rs
index e1d66bf032..d9c2543152 100644
--- a/utils/zerovec/src/map/map.rs
+++ b/utils/zerovec/src/map/map.rs
@@ -56,6 +56,8 @@ use core::iter::FromIterator;
/// ```
///
/// [`VarZeroVec`]: crate::VarZeroVec
+// ZeroMap has only one invariant: keys... | 2 | 4 | 3 |
eae38373145ad911bc7b063a3753c062fbcbca0d | Shane F. Carr | 2022-03-24T02:09:38 | Add ZeroMap::get_copied_by (#1722) | diff --git a/utils/zerovec/src/map/map.rs b/utils/zerovec/src/map/map.rs
index 497fdc1619..e1d66bf032 100644
--- a/utils/zerovec/src/map/map.rs
+++ b/utils/zerovec/src/map/map.rs
@@ -346,12 +346,44 @@ where
V: ZeroMapKV<'a, Container = ZeroVec<'a, V>> + ?Sized,
V: AsULE + Copy,
{
- /// For cases when `V` ... | 1 | 33 | 1 |
0ce4fd69bb6c956bd44a25badd17917697846c2f | Shane F. Carr | 2022-03-24T00:53:14 | Generalize PairULE to support longer tuples (#1721) | diff --git a/components/plurals/src/rules/runtime/ast.rs b/components/plurals/src/rules/runtime/ast.rs
index 79dbf39757..297ca292e8 100644
--- a/components/plurals/src/rules/runtime/ast.rs
+++ b/components/plurals/src/rules/runtime/ast.rs
@@ -8,7 +8,7 @@ use crate::rules::reference;
use core::{convert::TryInto, fmt, s... | 5 | 187 | 112 |
1e53fd53c6c1cfb57d5bcefb900d696f6f2766ef | Shane F. Carr | 2022-03-23T21:21:35 | Add Locale::cmp_bytes (#1713) | diff --git a/components/locid/benches/helpers/macros.rs b/components/locid/benches/helpers/macros.rs
index 06a011411d..1582737b60 100644
--- a/components/locid/benches/helpers/macros.rs
+++ b/components/locid/benches/helpers/macros.rs
@@ -80,6 +80,13 @@ macro_rules! compare_str {
}
})
... | 20 | 323 | 264 |
d118e3d1f3264096ee7e92d867ebf2c46069ef56 | Shane F. Carr | 2022-03-18T00:43:25 | Add ULE for Language and fix bug in Region (#1711) | diff --git a/components/locid/src/subtags/language.rs b/components/locid/src/subtags/language.rs
index 26f0d9938e..bcfa823cd3 100644
--- a/components/locid/src/subtags/language.rs
+++ b/components/locid/src/subtags/language.rs
@@ -39,6 +39,7 @@ use tinystr::TinyAsciiStr;
///
/// [`unicode_language_id`]: https://unico... | 2 | 96 | 1 |
fa4fd564e465e3e72cae11d9e044062cd0dadbb7 | Shane F. Carr | 2022-03-17T21:13:36 | Add LanguageIdentifier::cmp_bytes (#1704) | diff --git a/components/locid/src/cmp/langid.rs b/components/locid/src/cmp/langid.rs
new file mode 100644
index 0000000000..c7b4fcac35
--- /dev/null
+++ b/components/locid/src/cmp/langid.rs
@@ -0,0 +1,70 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at the top level of the ... | 5 | 137 | 0 |
539f979d8c9cc64534396aa162240a9e204a4578 | Gollapudi Vamsi Krishna | 2022-03-17T20:07:53 | Add coptic calendar (#1660) | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
index d40fcb22e3..94af6e46ec 100644
--- a/components/calendar/src/calendar_arithmetic.rs
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -16,7 +16,7 @@ pub struct ArithmeticDate<C: CalendarArithmetic> {
... | 4 | 233 | 32 |
cf1d001e177738544c646d6163548c6c874942d0 | Gollapudi Vamsi Krishna | 2022-03-16T16:03:46 | Change month_lenghts to return individual month lengths (#1705)
* Change month_lenghts to return individual month lengths in Calendar Arithmetic
* Clippy fixes
* Clippy fixes
* Fix logic | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
index bc4e74d658..d40fcb22e3 100644
--- a/components/calendar/src/calendar_arithmetic.rs
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -16,7 +16,7 @@ pub struct ArithmeticDate<C: CalendarArithmetic> {
... | 2 | 18 | 19 |
35907cb897d795105f074d36f945cbae47a461bf | Shane F. Carr | 2022-03-16T01:06:27 | Make Region, Script, and Variant subtags ULE (#1696) | diff --git a/Cargo.lock b/Cargo.lock
index f7e84e7137..db2f380879 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1237,6 +1237,7 @@ dependencies = [
"serde_json",
"tinystr 0.5.0",
"writeable",
+ "zerovec",
]
[[package]]
diff --git a/components/locid/Cargo.toml b/components/locid/Cargo.toml
index 0c3675619d..6331... | 5 | 285 | 0 |
90e20f381b8c725352289acbd4457cb2c3ff6496 | Shane F. Carr | 2022-03-15T23:08:13 | Add more functions to TinyAsciiStr (#1694) | diff --git a/Cargo.lock b/Cargo.lock
index 5fb0f09eeb..f7e84e7137 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2050,14 +2050,13 @@ dependencies = [
[[package]]
name = "rand"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e7573632e6454cf6b99d7aac... | 5 | 316 | 21 |
e8562c1b68cff0ebb4a85b86c2c716ddb63cd3e6 | Manish Goregaokar | 2022-03-14T17:26:45 | Make list_formatter data *almost* zero-copy (#1680)
* Make list_formatter data *almost* zero-copy
* Update verify tool with two kinds of violations | diff --git a/components/list/Cargo.toml b/components/list/Cargo.toml
index de4136b1b5..88e36e3a44 100644
--- a/components/list/Cargo.toml
+++ b/components/list/Cargo.toml
@@ -43,7 +43,7 @@ path = "src/lib.rs"
[features]
default = ["icu4x_human_readable_de"]
std = ["icu_provider/std", "icu_locid/std", "regex-automata... | 4 | 77 | 19 |
ee07d7b16f5878705107eadf382577cccbc1979a | Shane F. Carr | 2022-03-10T02:02:18 | Add make_forking_provider! macro (#1684) | diff --git a/provider/core/src/fork/by_key.rs b/provider/core/src/fork/by_key.rs
index a523a6ca18..b54b550fd9 100644
--- a/provider/core/src/fork/by_key.rs
+++ b/provider/core/src/fork/by_key.rs
@@ -103,6 +103,7 @@ use alloc::vec::Vec;
/// .expect_err("Should stop at the first provider, even though the second has ... | 3 | 78 | 0 |
135bf92d0f206f8558f6b703d2dff0e2e87cb88a | Manish Goregaokar | 2022-03-09T18:27:31 | Add more AsULE impls for primitives (#1672)
* Add f32/f64 ule
* Add bool ULE
* add equle | diff --git a/utils/zerovec/src/ule/plain.rs b/utils/zerovec/src/ule/plain.rs
index b27e510fc7..fa716e673b 100644
--- a/utils/zerovec/src/ule/plain.rs
+++ b/utils/zerovec/src/ule/plain.rs
@@ -199,3 +199,78 @@ impl AsULE for i8 {
// EqULE is true because i8 is its own ULE.
unsafe impl EqULE for i8 {}
+
+// These impl... | 1 | 75 | 0 |
54804ff5a6b252a8fb2fe4a805e62667d356fd7f | Ting-Yu Lin | 2022-03-09T18:23:48 | Make line break tests run faster (#1681)
Currently, we load line break data *every time* we call `is_break` or
`get_linebreak_property`. It is sufficient to load the data once per test.
On my machine, the running time of `cargo test break_rule` is reduce from 2.66s
to 0.05s, and `cargo test linebreak_property` fr... | diff --git a/experimental/segmenter/src/line.rs b/experimental/segmenter/src/line.rs
index 3b74bd7e3c..3b4d5427f1 100644
--- a/experimental/segmenter/src/line.rs
+++ b/experimental/segmenter/src/line.rs
@@ -779,7 +779,8 @@ impl<'l, 's> LineBreakType<'l, 's> for Utf16Char {
mod tests {
use super::*;
- fn get_... | 1 | 23 | 21 |
df232db53e2dd21c9ddb25e5a9cad4b96a4d9b54 | Manish Goregaokar | 2022-03-08T18:32:37 | Make time_zone/formats@1 fully zero-copy (#1676)
* Make time_zone/formats@1 fully zero-copy
* fmt | diff --git a/components/datetime/src/provider/time_zones.rs b/components/datetime/src/provider/time_zones.rs
index abc09209ec..19ab61c5a7 100644
--- a/components/datetime/src/provider/time_zones.rs
+++ b/components/datetime/src/provider/time_zones.rs
@@ -19,6 +19,10 @@ use zerovec::{ZeroMap, ZeroMap2d};
pub struct Tim... | 2 | 26 | 0 |
03031533317965904c1dbdd744f985d52d749c0c | Gollapudi Vamsi Krishna | 2022-03-03T17:49:31 | Add Calendar Arithmetic (#1614)
* Add Calendar Arithmetic
* Remove calendar extension
* Add until()
* Fix errors in calendar_arithmetic
* Fix few more errors
* Fix other type errors
* mutability
* Fix tests
* Clippy suggestions
* More clippy
* Fix comments
Co-authored-by: Manish Gorega... | diff --git a/components/calendar/src/calendar_arithmetic.rs b/components/calendar/src/calendar_arithmetic.rs
new file mode 100644
index 0000000000..bc4e74d658
--- /dev/null
+++ b/components/calendar/src/calendar_arithmetic.rs
@@ -0,0 +1,111 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// ca... | 4 | 211 | 142 |
afcd45a277729a2fb7fd4091711b55a916415ff9 | Manish Goregaokar | 2022-03-03T00:11:28 | Turn all errors into Copy types (#1657)
* Move DateTimeError to Copy
* Move DTF errors to Copy
* Display for TinyStr
* copy types in plurals
* Copy for core DateTimeFormatError
* Copy for decimal, locid, properties errors
* clip
* clip | diff --git a/components/calendar/src/error.rs b/components/calendar/src/error.rs
index d25ccf435d..c707bfd375 100644
--- a/components/calendar/src/error.rs
+++ b/components/calendar/src/error.rs
@@ -9,11 +9,11 @@ impl std::error::Error for DateTimeError {}
/// A list of possible error outcomes for working with vario... | 16 | 40 | 28 |
fa5e8c369e6eaaba1b379105624f43a45fcdaeac | Shane F. Carr | 2022-03-02T03:23:22 | Add cast methods to ZeroVec and ZeroSlice (#1651) | diff --git a/utils/zerovec/src/ule/plain.rs b/utils/zerovec/src/ule/plain.rs
index 12cce9fa91..b27e510fc7 100644
--- a/utils/zerovec/src/ule/plain.rs
+++ b/utils/zerovec/src/ule/plain.rs
@@ -73,6 +73,8 @@ macro_rules! impl_byte_slice_size {
/// This cannot be generic over T because of current limitations i... | 3 | 111 | 13 |
748235294d18a8686d6a5dfc03329ff942780629 | Manish Goregaokar | 2022-03-02T01:15:43 | Add RawBytesULE::slice_from_byte_slice (#1648) | diff --git a/utils/zerovec/src/lib.rs b/utils/zerovec/src/lib.rs
index 76e12def44..5adf88dad6 100644
--- a/utils/zerovec/src/lib.rs
+++ b/utils/zerovec/src/lib.rs
@@ -109,10 +109,13 @@ mod map;
mod map2d;
#[cfg(test)]
pub mod samples;
-pub mod ule;
mod varzerovec;
mod zerovec;
+// This must be after `mod zerovec... | 3 | 44 | 1 |
dc36207f4f9e774a014fb1a692b4bf1726f7df49 | Manish Goregaokar | 2022-03-01T00:38:15 | Use zerovec proc macros where possible, get rid of num_enum dep (#1642)
* Add ULE impl for byte arrays
* Use zerovec proc macro in provider
* Relax requirement that enums must be in order
* Move GeneralCategory over to make_ule
* convert the rest of the enums to ule
* don't export ULE types
* Move An... | diff --git a/Cargo.lock b/Cargo.lock
index 4078c9c28a..4a0550a2d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -511,17 +511,6 @@ dependencies = [
"serde_json",
]
-[[package]]
-name = "derivative"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcc3dd5e9e9c0b295d6e1e... | 21 | 266 | 485 |
1a4e610165ff33eea11c25271915058ca1bbf5eb | Ting-Yu Lin | 2022-03-01T00:28:36 | Bring LineBreakDataV1 data structure closer to RuleBreakDataV1 (#1634)
* Align LineBreakDataV1 with RuleBreakDataV1
Make LineBreakDataV1 data more similar to RuleBreakDataV1 via:
- Include generated_line_table.rs in `line_data` mod in provider.rs.
- Move `property_count` from LineBreakRuleTable into LineBreakDa... | diff --git a/experimental/segmenter/src/grapheme.rs b/experimental/segmenter/src/grapheme.rs
index 91298eb427..b1d320e492 100644
--- a/experimental/segmenter/src/grapheme.rs
+++ b/experimental/segmenter/src/grapheme.rs
@@ -22,9 +22,7 @@ pub type GraphemeClusterBreakIteratorUtf16<'l, 's> =
RuleBreakIterator<'l, 's,... | 7 | 92 | 68 |
d501688aef534f55358f79ff6d2660880cffea88 | mildgravitas | 2022-02-28T22:01:04 | Use rayon to add parallelism to datagen (#1600)
Co-authored-by: Robert Bastian <robertbastian@users.noreply.github.com> | diff --git a/Cargo.lock b/Cargo.lock
index d8f6900c47..4078c9c28a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1124,6 +1124,7 @@ dependencies = [
"icu_provider_uprops",
"icu_testdata",
"log",
+ "rayon",
"reqwest",
"serde",
"simple_logger",
diff --git a/provider/cldr/src/cldr_paths.rs b/provider/cldr/src/cld... | 7 | 12 | 9 |
96ea961e4bdb67a2ce3c86547f982a84550a923a | Ting-Yu Lin | 2022-02-24T02:05:41 | Remove duplicate implementation in LineBreakType (#1630)
* Implement get_linebreak_property() in LineBreakIterator
* Implement is_break_by_normal() in LineBreakIterator | diff --git a/experimental/segmenter/src/line.rs b/experimental/segmenter/src/line.rs
index 63e5ffd92f..fe57a255f2 100644
--- a/experimental/segmenter/src/line.rs
+++ b/experimental/segmenter/src/line.rs
@@ -233,7 +233,7 @@ fn get_linebreak_property_with_rule(
#[inline]
fn is_break_utf32_by_normal(codepoint: u32, ja... | 1 | 13 | 43 |
6a43fc5e0d1f6a6e59c151b3d104442c963c073f | Manish Goregaokar | 2022-02-23T07:25:48 | Create façades for ZeroVec types, hide internal code organization modules (#1629)
* Create zerovec::maps façade
* Create zerovec::vecs façade | diff --git a/components/datetime/src/provider/calendar/symbols.rs b/components/datetime/src/provider/calendar/symbols.rs
index d9e2600ae3..335dfcca75 100644
--- a/components/datetime/src/provider/calendar/symbols.rs
+++ b/components/datetime/src/provider/calendar/symbols.rs
@@ -6,7 +6,7 @@
use alloc::borrow::Cow;
u... | 19 | 72 | 32 |
8f6ff988f231c939d1ca882ba610c663f70a5ae4 | Robert Bastian | 2022-02-22T17:14:59 | Making more tinystr operations const (#1628) | diff --git a/utils/tinystr/src/ascii.rs b/utils/tinystr/src/ascii.rs
index 57cb49d31e..4b66362341 100644
--- a/utils/tinystr/src/ascii.rs
+++ b/utils/tinystr/src/ascii.rs
@@ -15,15 +15,25 @@ pub struct TinyAsciiStr<const N: usize> {
impl<const N: usize> TinyAsciiStr<N> {
pub const fn from_bytes(bytes: &[u8]) ->... | 3 | 98 | 80 |
32d9dec309662f0da97285d2269c31644a371b58 | Manish Goregaokar | 2022-02-18T00:10:13 | Add zerovec::skip_kv and zerovec::skip_ord attributes, as well as generalized attribute handling framework (#1613)
* Add ZeroMapKV autogen for make_varule
* Add code for handling zerovec:: attrs
* Handle skip_kv
* Add ability to skip ord impls
* Use semantically correct ord impls
* Add tests
* doc/fm... | diff --git a/utils/zerovec/derive/examples/make.rs b/utils/zerovec/derive/examples/make.rs
index dbee90502a..4474efd62b 100644
--- a/utils/zerovec/derive/examples/make.rs
+++ b/utils/zerovec/derive/examples/make.rs
@@ -30,6 +30,17 @@ enum Enum {
F = 5,
}
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Ord, Partial... | 8 | 225 | 20 |
db2c70d961ac853ada03543f8f85900df405fdf5 | Shane F. Carr | 2022-02-17T21:38:12 | Fix build failure on main after PR merge (#1621) | diff --git a/provider/core/src/struct_provider.rs b/provider/core/src/struct_provider.rs
index e6da1ddc1f..bd8a4b156c 100644
--- a/provider/core/src/struct_provider.rs
+++ b/provider/core/src/struct_provider.rs
@@ -7,7 +7,7 @@
use crate::prelude::*;
use yoke::trait_hack::YokeTraitHack;
use yoke::Yokeable;
-use yoke:... | 1 | 2 | 2 |
90a55c44673b97938b1541f4898747a285fae342 | Shane F. Carr | 2022-02-17T18:30:44 | Add ResourceProvider impl to AnyPayloadProvider (#1583) | diff --git a/provider/core/src/struct_provider.rs b/provider/core/src/struct_provider.rs
index 95ee97b00c..e6da1ddc1f 100644
--- a/provider/core/src/struct_provider.rs
+++ b/provider/core/src/struct_provider.rs
@@ -5,6 +5,9 @@
//! Data provider always serving the same struct.
use crate::prelude::*;
+use yoke::trait... | 1 | 14 | 0 |
412119d18e61f533c33b3526c42cefa39fefb3c4 | Manish Goregaokar | 2022-02-17T05:33:46 | Add encode_varule_to_box(), clean up organization of `custom` module (#1612)
* Add encode_to_box
* Move EncodeAsVar out of custom::
* Improve docs a bit
* make it cfg(doc)
* fmt
* fix
* add into_boxed_slice
* review
* fmt | diff --git a/components/plurals/src/rules/runtime/ast.rs b/components/plurals/src/rules/runtime/ast.rs
index 4807094099..4be7d2d5f7 100644
--- a/components/plurals/src/rules/runtime/ast.rs
+++ b/components/plurals/src/rules/runtime/ast.rs
@@ -13,7 +13,7 @@ use core::{
use icu_provider::{yoke, zerofrom};
use num_enum:... | 10 | 96 | 33 |
8d331f2838dc834d21efe5dc01eb8df4022d5399 | Manish Goregaokar | 2022-02-15T22:33:43 | Add #[make_varule] proc macro (#1609)
* Add make_varule | diff --git a/Cargo.lock b/Cargo.lock
index 69f07fabdf..6d77616924 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3154,6 +3154,7 @@ dependencies = [
"quote",
"syn",
"synstructure",
+ "zerofrom",
"zerovec",
]
diff --git a/utils/zerovec/derive/Cargo.toml b/utils/zerovec/derive/Cargo.toml
index 823593128e..129d78c... | 12 | 631 | 30 |
08e8f3804a63345b772af6f5d76cead28927255a | Manish Goregaokar | 2022-02-15T19:05:16 | Add #[make_ule] proc macro (#1603)
Co-authored-by: Shane F. Carr <shane@unicode.org> | diff --git a/utils/zerovec/derive/Cargo.toml b/utils/zerovec/derive/Cargo.toml
index 65be7292b7..823593128e 100644
--- a/utils/zerovec/derive/Cargo.toml
+++ b/utils/zerovec/derive/Cargo.toml
@@ -22,7 +22,7 @@ path = "src/lib.rs"
[dependencies]
proc-macro2 = "1.0.27"
quote = "1.0.9"
-syn = { version = "1.0.73", featu... | 6 | 407 | 15 |
9ca9780f230b903b2fae7581c4674015da7bdcd8 | Elango | 2022-02-15T17:23:42 | Add user-facing provider-aware API for Script_Extensions data result (#1593) | diff --git a/components/icu/src/lib.rs b/components/icu/src/lib.rs
index f5e1f4495c..556c5ddd24 100644
--- a/components/icu/src/lib.rs
+++ b/components/icu/src/lib.rs
@@ -426,6 +426,48 @@ pub mod properties {
//! assert_eq!(script.get('木' as u32), Script::Han); // U+6728
//! ```
//!
+ //! ## Property... | 2 | 157 | 97 |
73613eae6e0b75e5ba0116f276015e4d65c95216 | Manish Goregaokar | 2022-02-12T07:00:39 | zerovec binary_search_by functions (#1605)
* Add binary_search_by to vector types
* Add zvl_binary_search_by
* Add get_by to ZeroMaps
* fix | diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs
index b45f0c0a82..aada391ae8 100644
--- a/utils/zerovec/src/map/borrowed.rs
+++ b/utils/zerovec/src/map/borrowed.rs
@@ -5,6 +5,7 @@
use crate::ule::AsULE;
use crate::{ZeroSlice, ZeroVec};
+use core::cmp::Ordering;
use core::fmt;
... | 6 | 146 | 5 |
7b62eee1c222523f4d56f02798d7e2420fd74962 | Robert Bastian | 2022-02-11T19:01:48 | UnicodeSet ZCF (#1604) | diff --git a/utils/uniset/Cargo.toml b/utils/uniset/Cargo.toml
index d309cb53c5..f9617e8b0e 100644
--- a/utils/uniset/Cargo.toml
+++ b/utils/uniset/Cargo.toml
@@ -37,7 +37,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
tinystr = { path = "../../utils/tinystr", version = "0.5.0", ... | 3 | 3 | 2 |
bf9efe6973437bda8c7506e15dce277f79d6bbd8 | Robert Bastian | 2022-02-11T07:47:21 | Hiding PluralRulesV1Marker (#1598) | diff --git a/components/plurals/src/lib.rs b/components/plurals/src/lib.rs
index 2ca74ca12b..3dce56ba69 100644
--- a/components/plurals/src/lib.rs
+++ b/components/plurals/src/lib.rs
@@ -80,8 +80,8 @@ use icu_locid::Locale;
use icu_provider::prelude::*;
pub use operands::PluralOperands;
use provider::CardinalV1Marke... | 2 | 10 | 4 |
0f2f0f791415d645f456c901666633ec49c660ff | Elango | 2022-02-11T00:02:11 | Update API docs for ScriptExtensions struct (#1570) | diff --git a/components/properties/src/provider.rs b/components/properties/src/provider.rs
index fa83cff07e..024eb834ac 100644
--- a/components/properties/src/provider.rs
+++ b/components/properties/src/provider.rs
@@ -6,7 +6,7 @@
//!
//! Read more about data providers: [`icu_provider`]
-use crate::script::ScriptEx... | 8 | 465 | 195 |
bede0608eb784f6b93dbf3d280d7553e41b73e7e | Manish Goregaokar | 2022-02-10T16:09:30 | Make tinystr publishable (#1597) | diff --git a/utils/tinystr/Cargo.toml b/utils/tinystr/Cargo.toml
index 8bba7e1b1e..ca9ce7c65a 100644
--- a/utils/tinystr/Cargo.toml
+++ b/utils/tinystr/Cargo.toml
@@ -16,6 +16,7 @@ include = [
"src/**/*",
"examples/**/*",
"benches/**/*",
+ "tests/**/*",
"Cargo.toml",
"LICENSE",
"README.... | 1 | 1 | 0 |
c10dfb21d71f98fb0bd0719465bcb77c6ce65364 | Zibi Braniecki | 2022-02-08T16:30:28 | Minor fixes to from_bytes and must_use hygine (#1592)
Co-authored-by: Zibi Braniecki <zibi@5c52309a8f35.ant.amazon.com> | diff --git a/experimental/tinystr_neo/Cargo.toml b/experimental/tinystr_neo/Cargo.toml
index 809ae95b33..783aa8dc0f 100644
--- a/experimental/tinystr_neo/Cargo.toml
+++ b/experimental/tinystr_neo/Cargo.toml
@@ -6,7 +6,7 @@
name = "tinystr-neo"
version = "0.3.1"
description = "A small ASCII-only bounded length string... | 3 | 26 | 15 |
a41d5d53dedfe5ca51c4a405b501a0a8f0b2a813 | Shane F. Carr | 2022-02-04T04:24:07 | Remove separate ResourceKey definitions in favor of ResourceMarker (#1582)
Fixes #1559 | diff --git a/components/calendar/src/provider.rs b/components/calendar/src/provider.rs
index 513263ed39..498a37f18a 100644
--- a/components/calendar/src/provider.rs
+++ b/components/calendar/src/provider.rs
@@ -11,14 +11,6 @@ use icu_provider::yoke::{self, *};
use litemap::LiteMap;
use tinystr::TinyStr16;
-pub mod ... | 28 | 112 | 220 |
fb073c2109bdf792bcf30770e53af6b8000678b1 | Shane F. Carr | 2022-02-02T06:39:31 | Fix cargo quick in list component (#1573) | diff --git a/experimental/list_formatter/Cargo.toml b/experimental/list_formatter/Cargo.toml
index 0c3eaa8d21..14e9389620 100644
--- a/experimental/list_formatter/Cargo.toml
+++ b/experimental/list_formatter/Cargo.toml
@@ -46,3 +46,7 @@ std = ["icu_provider/std", "icu_locid/std", "regex-automata/std"]
provider_serde =... | 2 | 12 | 4 |
e97f85e48250fbbb4cefbe88f9ddea8e6cb73b9e | Manish Goregaokar | 2022-02-01T01:03:16 | Bump datagen to 0.5 (#1566) | diff --git a/Cargo.lock b/Cargo.lock
index d130a1c3c6..6e3915b7f0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1108,7 +1108,7 @@ dependencies = [
[[package]]
name = "icu_datagen"
-version = "0.4.0"
+version = "0.5.0"
dependencies = [
"clap",
"eyre",
diff --git a/tools/datagen/Cargo.toml b/tools/datagen/Cargo.t... | 2 | 2 | 2 |
658229ca3a1aebb53b9e1da3e717af0b36f79297 | Shane F. Carr | 2022-01-31T19:27:15 | Add namespace to ZeroCopyFrom in yoke derive (#1558)
* Add namespace to ZeroCopyFrom in yoke derive
* Bump yoke-derive to 0.4.1
* Bump yoke-derive in yoke deps | diff --git a/Cargo.lock b/Cargo.lock
index 0f03237d71..df28d14db4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3080,7 +3080,7 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"proc-macro2",
"quote",
diff --git a/utils/yoke/Cargo.toml b/utils/yoke/Cargo... | 4 | 5 | 5 |
0ab8711ecca740976fcf2c8ad21aca3ce76c7dec | Robert Bastian | 2022-01-31T18:51:11 | Fixing Option borrows (follow-up #1550) (#1556)
* Fixing Option borrows
* Custom Option<Cow<str>> deserializer
* Revert "Custom Option<Cow<str>> deserializer"
This reverts commit a69941cd2c0e8fa56ac148dafe7266da6c7fbe98.
* Serde utils in icu_provider
* Removing serde_with dep
* fmt and fix
* Updat... | diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml
index c9a0ca952b..d44ea01e9d 100644
--- a/components/datetime/Cargo.toml
+++ b/components/datetime/Cargo.toml
@@ -67,7 +67,7 @@ bench = false # This option is required for Benchmark CI
std = ["icu_provider/std", "icu_locid/std", "icu_calenda... | 4 | 245 | 63 |
c83c90c05314e7334a96f34abaca4bf7f0ab1bf3 | Manish Goregaokar | 2022-01-31T18:11:51 | Publish utils (#1547)
* Bump yoke crates to 0.4.0
* Update yoke deps
* Bump zerovec to 0.6.0
* Update zerovec deps
* Bump writeable to 0.3.0
* Update writeable deps
* Bump uniset to 0.4.1
* Update uniset deps
* Bump litemap to 0.3.0
* Update litemap deps
* Bump fixed_decimal to 0.2.2
*... | diff --git a/Cargo.lock b/Cargo.lock
index 75ceb9596b..0f03237d71 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -504,7 +504,7 @@ dependencies = [
[[package]]
name = "deduplicating_array"
-version = "0.5.0"
+version = "0.1.0"
dependencies = [
"postcard",
"serde",
@@ -657,7 +657,7 @@ dependencies = [
[[package]... | 31 | 69 | 69 |
bc6c319fb288310c5f6a70bd0fc067f697e794d0 | Elango | 2022-01-29T00:35:59 | Add fn to return UnicodeSet for Script_Extensions (#1529) | diff --git a/components/properties/src/script.rs b/components/properties/src/script.rs
index c9834bb436..fca350bf2d 100644
--- a/components/properties/src/script.rs
+++ b/components/properties/src/script.rs
@@ -8,16 +8,24 @@
use crate::error::PropertiesError;
use crate::props::Script;
+use core::iter::FromIterator;... | 7 | 893 | 21 |
7a7cb736383e9eda1aecc0d94c67e693d39752b4 | Robert Bastian | 2022-01-28T21:13:18 | Removing uprops-specific code from ResourceKey (#1555) | diff --git a/provider/core/src/resource.rs b/provider/core/src/resource.rs
index 9948acdd63..ef1e72177d 100644
--- a/provider/core/src/resource.rs
+++ b/provider/core/src/resource.rs
@@ -39,13 +39,14 @@ impl ResourceKeyHash {
/// const K: ResourceKey = icu_provider::resource_key!("foo/bar@1");
/// ```
///
-/// The p... | 7 | 49 | 92 |
d9b5c987d58a3ad7ccf0cf633ede52a8bb21bbc4 | Ting-Yu Lin | 2022-01-27T18:35:44 | Replace break_iterator_impl macro with a helper trait (#1548)
The goal of this patch is to remove the macro and preserve the APIs as much
as possible. We'll start simplify things in the later patches.
The removed get_break_property_{utf32,latin1,utf8} helper functions all convert
the character into 32-bit unsigne... | diff --git a/experimental/segmenter/src/grapheme.rs b/experimental/segmenter/src/grapheme.rs
index 8ba720e5a3..8a8c4b25ac 100644
--- a/experimental/segmenter/src/grapheme.rs
+++ b/experimental/segmenter/src/grapheme.rs
@@ -5,14 +5,15 @@
use alloc::vec::Vec;
use core::str::CharIndices;
-use crate::break_iterator_imp... | 4 | 317 | 259 |
148e62856a511208d336e883903652a534f3b868 | Shane F. Carr | 2022-01-26T17:50:47 | Add more functions to TinyAsciiStr for feature parity (#1542)
- Also adds overview benches | diff --git a/experimental/tinystr_neo/Cargo.toml b/experimental/tinystr_neo/Cargo.toml
index f732098bee..4262ca8f91 100644
--- a/experimental/tinystr_neo/Cargo.toml
+++ b/experimental/tinystr_neo/Cargo.toml
@@ -36,19 +36,30 @@ postcard = { version = "0.7", features = ["use-std"] }
tinystr_old = { version = "0.4", pack... | 5 | 703 | 3 |
de3847901e2b08c8dedc98973cfa6ab695a65d50 | Ting-Yu Lin | 2022-01-26T17:25:49 | Run segmenter's build.rs only if data is changed (#1543)
Running `build.rs` takes at least 20 seconds on my machine. This patch reduces
the segmenter's build time when modifying files other than `data/*` or
`build.rs`.
Note that cargo automatically handles whether `build.rs` is changed.
https://doc.rust-lang.org... | diff --git a/experimental/segmenter/build.rs b/experimental/segmenter/build.rs
index 25da0a23e3..e5a509bb87 100644
--- a/experimental/segmenter/build.rs
+++ b/experimental/segmenter/build.rs
@@ -545,6 +545,8 @@ fn generate_rule_segmenter_table(file_name: &str, toml_data: &[u8], provider: &F
}
fn main() {
+ print... | 1 | 2 | 0 |
021f89f819e6a1a5a90fc23b2ce34bf8458a96a5 | Manish Goregaokar | 2022-01-21T15:54:52 | Add benches to tinystr-neo (#1518)
* Add tinystr_old devdep
* Add construct bench
* Move common stuff into common module
* Read bench
* add serde bench | diff --git a/Cargo.lock b/Cargo.lock
index 6cf217433f..b4a88fbb4a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2660,10 +2660,12 @@ name = "tinystr-neo"
version = "0.3.1"
dependencies = [
"bincode",
+ "criterion",
"displaydoc",
"postcard",
"serde",
"serde_json",
+ "tinystr",
"zerovec",
]
diff --git a/ex... | 6 | 256 | 0 |
5a015efd970e2a008d24f67f7d13598ae5901223 | Shane F. Carr | 2022-01-20T18:25:05 | Add explicit aligned and unaligned read benches (#1391) | diff --git a/utils/zerovec/benches/zerovec.rs b/utils/zerovec/benches/zerovec.rs
index 7e950d67e7..8f12b58276 100644
--- a/utils/zerovec/benches/zerovec.rs
+++ b/utils/zerovec/benches/zerovec.rs
@@ -76,16 +76,35 @@ fn overview_bench(c: &mut Criterion) {
#[cfg(feature = "bench")]
fn sum_benches(c: &mut Criterion) {
... | 1 | 24 | 5 |
78176585a0a5390348b5163573d5b60df5dfd280 | Manish Goregaokar | 2022-01-20T17:37:41 | Add ULE impls to tinystr-neo (#1524) | diff --git a/Cargo.lock b/Cargo.lock
index 838f6c2af0..6cf217433f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2664,6 +2664,7 @@ dependencies = [
"postcard",
"serde",
"serde_json",
+ "zerovec",
]
[[package]]
diff --git a/experimental/tinystr_neo/Cargo.toml b/experimental/tinystr_neo/Cargo.toml
index 6fcccbe88... | 5 | 90 | 1 |
0cddf2b8fe09aa07640dd9ab36d72bab526647ed | Robert Bastian | 2022-01-20T16:29:50 | Simplifying path construction (#1521) | diff --git a/Cargo.lock b/Cargo.lock
index 04cb93b4b1..838f6c2af0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1372,6 +1372,7 @@ dependencies = [
"serde-json-core",
"serde_json",
"static_assertions",
+ "writeable",
]
[[package]]
diff --git a/provider/core/src/resource.rs b/provider/core/src/resource.rs
index ... | 5 | 13 | 86 |
29121d1a70a6459c7dc1e5cf0acd2672c96baaec | Robert Bastian | 2022-01-20T16:21:36 | ListFormatter on `Iterator<W>` instead of `&[W]` (#1523) | diff --git a/experimental/list_formatter/examples/and_list.rs b/experimental/list_formatter/examples/and_list.rs
index c0b122ab5e..0eb93f041d 100644
--- a/experimental/list_formatter/examples/and_list.rs
+++ b/experimental/list_formatter/examples/and_list.rs
@@ -25,7 +25,7 @@ fn main(_argc: isize, _argv: *const *const ... | 2 | 129 | 76 |
f46172f403b4456bc8abaed8e000a7b44d6e5234 | Robert Bastian | 2022-01-19T22:56:38 | Simplifying `assert_writeable_parts_eq` (#1522) | diff --git a/experimental/list_formatter/src/list_formatter.rs b/experimental/list_formatter/src/list_formatter.rs
index 38db1e8633..e046d3420d 100644
--- a/experimental/list_formatter/src/list_formatter.rs
+++ b/experimental/list_formatter/src/list_formatter.rs
@@ -157,7 +157,7 @@ impl<W: Writeable> Writeable for List... | 4 | 107 | 208 |
146fcf5629ffc1e1a686a3525069dcd4394e20b1 | Robert Bastian | 2022-01-19T17:43:54 | Fix `test-all-features` (#1519) | diff --git a/experimental/list_formatter/Cargo.toml b/experimental/list_formatter/Cargo.toml
index 9055a5b409..16e44b6529 100644
--- a/experimental/list_formatter/Cargo.toml
+++ b/experimental/list_formatter/Cargo.toml
@@ -47,3 +47,7 @@ bench = []
provider_serde = ["serde", "zerovec/serde", "deduplicating_array"]
pro... | 6 | 11 | 7 |
1278cefb0949bddd59f5e22d630f2d6e144234c3 | Robert Bastian | 2022-01-19T17:12:12 | Fixing doc tests (#1520) | diff --git a/provider/core/src/buf.rs b/provider/core/src/buf.rs
index 785760f2c3..5da3f6a515 100644
--- a/provider/core/src/buf.rs
+++ b/provider/core/src/buf.rs
@@ -23,6 +23,7 @@ impl DataMarker for BufferMarker {
/// # Examples
///
/// ```
+/// # #[cfg(feature = "deserialize_json")] {
/// use icu_provider::prelu... | 2 | 8 | 0 |
26089b27d7e08e29dc615f0246a4ececcc88961f | Shane F. Carr | 2022-01-19T00:30:19 | Re-write ResourceKey (#1511) | diff --git a/provider/cldr/src/transform/decimal/mod.rs b/provider/cldr/src/transform/decimal/mod.rs
index 9d02543c43..15fefa4cf2 100644
--- a/provider/cldr/src/transform/decimal/mod.rs
+++ b/provider/cldr/src/transform/decimal/mod.rs
@@ -62,10 +62,7 @@ impl TryFrom<&dyn CldrPaths> for NumbersProvider {
impl KeyedDa... | 20 | 280 | 256 |
55f95e12c3f5bdc05784ee9d2adafc029c697e8f | Shane F. Carr | 2022-01-18T23:41:43 | Add fxhash_32 (#1504) | diff --git a/provider/core/src/helpers.rs b/provider/core/src/helpers.rs
index 3749b8bcef..9cd9b0539b 100644
--- a/provider/core/src/helpers.rs
+++ b/provider/core/src/helpers.rs
@@ -76,3 +76,84 @@ fn test_escape_for_json() {
escape_for_json("ab\u{001F}c", &mut String::new())
);
}
+
+/// Const function t... | 1 | 81 | 0 |
7c1a36c74a8ded45d533ff5d7d6919855fa05e3b | Shane F. Carr | 2022-01-18T21:30:49 | Fix cargo check --all-targets --no-default-features (#1514) | diff --git a/experimental/tinystr_neo/Cargo.toml b/experimental/tinystr_neo/Cargo.toml
index d401b5a427..6fcccbe887 100644
--- a/experimental/tinystr_neo/Cargo.toml
+++ b/experimental/tinystr_neo/Cargo.toml
@@ -32,3 +32,7 @@ serde = { version = "1.0.123", optional = true, default-features = false, featur
serde_json = ... | 1 | 4 | 0 |
d1e9add0a88b06e73c025bb972e2485b4fd269d9 | Manish Goregaokar | 2022-01-16T19:24:33 | Add handling of leading zeroes to truncate_left() (#1507)
* Add handling of leading zeroes to truncate_left()
* rm extra condition | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 873d5e9535..4b713e598e 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -471,7 +471,10 @@ impl FixedDecimal {
return;
}
let _ = self.digits.dra... | 1 | 8 | 1 |
a0c80db85e5157535a2f4fc591bc0e93a653fd16 | Shane F. Carr | 2022-01-15T06:37:37 | Improve Writeable impl for ResourceOptions (#1510) | diff --git a/provider/core/src/resource.rs b/provider/core/src/resource.rs
index 212c93f632..c37efa2bf4 100644
--- a/provider/core/src/resource.rs
+++ b/provider/core/src/resource.rs
@@ -274,32 +274,36 @@ impl fmt::Display for ResourceOptions {
}
}
-impl writeable::Writeable for ResourceOptions {
+impl Writeabl... | 1 | 19 | 15 |
57c44dda588faedaad36fd0bc7243b0ab6f85f8c | Shane F. Carr | 2022-01-12T22:42:36 | Remove Yokeable::Output from ZeroCopyFrom trait (#1499) | diff --git a/experimental/segmenter/src/provider.rs b/experimental/segmenter/src/provider.rs
index 22e38e487f..cd5f193923 100644
--- a/experimental/segmenter/src/provider.rs
+++ b/experimental/segmenter/src/provider.rs
@@ -61,8 +61,8 @@ impl Deref for LineBreakPropertyTable<'_> {
}
}
-impl<'a> ZeroCopyFrom<Line... | 8 | 96 | 130 |
c6a9402a015fa39b08123ca89ca370986c4a7563 | Manish Goregaokar | 2022-01-11T22:36:15 | Add API for padding to a minimum number of decimal digits (#1482)
* Add API for padding to a minimum number of decimal digits
* Add padded_left, truncated_left, padded_right
* rm print
* magnitude -> digits
* tests
* fix test
* Update utils/fixed_decimal/src/decimal.rs
Co-authored-by: Shane F. Car... | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 35ac8ac6c2..873d5e9535 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -340,7 +340,8 @@ impl FixedDecimal {
self
}
- /// Add or remove digits from the left side of th... | 1 | 195 | 68 |
8b26c199bcc07cb383ccbe6a41772e6fce714bc4 | Shane F. Carr | 2022-01-11T21:02:02 | Make most Yokeable impls inline (#1493) | diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs
index ca9b6e0624..aecc5789cb 100644
--- a/provider/core/src/data_provider.rs
+++ b/provider/core/src/data_provider.rs
@@ -405,6 +405,7 @@ where
///
/// assert_eq!("Demo", payload.get());
/// ```
+ #[inline]
#[all... | 8 | 64 | 15 |
cf216a8c9140a44ed61ffea6148d1c63927eb0af | Robert Bastian | 2022-01-10T09:51:25 | Fixing test without --all-features (#1489) | diff --git a/experimental/list_formatter/src/error.rs b/experimental/list_formatter/src/error.rs
index e33bec6bc6..1d9bd466d4 100644
--- a/experimental/list_formatter/src/error.rs
+++ b/experimental/list_formatter/src/error.rs
@@ -13,10 +13,11 @@ use icu_provider::DataError;
pub enum Error {
#[displaydoc("error l... | 1 | 2 | 1 |
ef4125d78f71bbe26d3c9f891e93e92d1b227f00 | Shane F. Carr | 2022-01-08T20:56:43 | Add EitherCart and rename Yoke ZCF constructors (#1484)
* Centralize ZCF constructors into attach_to_zero_copy_cart | diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs
index c8b773561d..ca9b6e0624 100644
--- a/provider/core/src/data_provider.rs
+++ b/provider/core/src/data_provider.rs
@@ -297,7 +297,7 @@ where
/// let json_rc_buffer: Rc<[u8]> = json_text.as_bytes().into();
///
/// let ... | 6 | 167 | 88 |
d87058a6a34e16582b6300abe9339b1916384a79 | Gollapudi Vamsi Krishna | 2022-01-07T09:11:25 | Julian calendar (#1351)
* Julian calendar
* fix logic and add tests
* rustfmt
* clippy
* Minor changes
* Year info
* change by comments
* Explain conversion to iso date
* Add tests for julian to iso conversion
* Add additional test case of March 1st in julian to iso conversion
* Use book calculations for jul... | diff --git a/components/calendar/src/iso.rs b/components/calendar/src/iso.rs
index e73a3161a8..46e9bcd0b0 100644
--- a/components/calendar/src/iso.rs
+++ b/components/calendar/src/iso.rs
@@ -8,6 +8,9 @@ use crate::{types, Calendar, Date, DateDuration, DateDurationUnit, DateTime, Dat
use core::convert::{TryFrom, TryInt... | 3 | 438 | 1 |
0f7103311a587e423a2b74bf3f5f411d3769ee0f | Shane F. Carr | 2022-01-03T09:54:55 | Add boilerplate to new ListFormatter example (#1465) | diff --git a/Cargo.lock b/Cargo.lock
index 6292ced376..20693b7184 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1170,6 +1170,7 @@ dependencies = [
"deduplicating_array",
"displaydoc",
"formatted_string",
+ "icu_benchmark_macros",
"icu_locid",
"icu_locid_macros",
"icu_provider",
diff --git a/experimental/list... | 3 | 12 | 1 |
714acbd4ed5ce70722a60f102ad693ee48189048 | Robert Bastian | 2021-12-30T22:22:43 | ListFormatter example (#1456) | diff --git a/Cargo.lock b/Cargo.lock
index c7b5d59c6c..6292ced376 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1171,7 +1171,9 @@ dependencies = [
"displaydoc",
"formatted_string",
"icu_locid",
+ "icu_locid_macros",
"icu_provider",
+ "icu_testdata",
"postcard",
"regex",
"serde",
diff --git a/experimental/l... | 3 | 25 | 0 |
59edff5d06e20fe0c71e972d623e2a67ed80ee9e | Shane F. Carr | 2021-12-30T20:22:03 | Change Writeable::writeable_to_string to return a Cow (#1452) | diff --git a/components/decimal/benches/fixed_decimal_format.rs b/components/decimal/benches/fixed_decimal_format.rs
index 7314fe0b21..148ee099c8 100644
--- a/components/decimal/benches/fixed_decimal_format.rs
+++ b/components/decimal/benches/fixed_decimal_format.rs
@@ -37,7 +37,7 @@ fn overview_bench(c: &mut Criterion... | 6 | 153 | 18 |
fe67c68dcbb6996ac9d68fad4c05946f76a0342d | Manish Goregaokar | 2021-12-30T00:45:15 | Add categories to yoke and zerovec (#1451)
* Add categories to yoke and zerovec
* data-structures | diff --git a/utils/yoke/Cargo.toml b/utils/yoke/Cargo.toml
index 6d8b3a7cec..723e845c2f 100644
--- a/utils/yoke/Cargo.toml
+++ b/utils/yoke/Cargo.toml
@@ -10,7 +10,7 @@ authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
edition = "2018"
repository = "https://github.com/unicode-org/icu4x"
license-file = "LICENSE... | 3 | 4 | 2 |
4f4ba6ec0880f97dc9c3f81720485784da460481 | Shane F. Carr | 2021-12-22T20:06:15 | Add various helper functions to zerovec (#1430)
- VZS::binary_search_in_range
- ZV::get_subslice
- RawBytesULE::as_unsigned_int() | diff --git a/utils/zerovec/src/map/vecs.rs b/utils/zerovec/src/map/vecs.rs
index 11255287d3..f63fae0b2c 100644
--- a/utils/zerovec/src/map/vecs.rs
+++ b/utils/zerovec/src/map/vecs.rs
@@ -10,6 +10,7 @@ use alloc::boxed::Box;
use alloc::vec::Vec;
use core::cmp::Ordering;
use core::mem;
+use core::ops::Range;
/// Tr... | 6 | 184 | 7 |
0c1f751b6a50b74fbfa367758f9cf89cda55273a | Robert Bastian | 2021-12-22T18:00:03 | Using new list data invariants (#1434) | diff --git a/experimental/list_formatter/src/list_formatter.rs b/experimental/list_formatter/src/list_formatter.rs
index 5457af4329..0ac6ff0c0d 100644
--- a/experimental/list_formatter/src/list_formatter.rs
+++ b/experimental/list_formatter/src/list_formatter.rs
@@ -67,49 +67,28 @@ impl ListFormatter {
}
... | 3 | 67 | 78 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.