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 |
|---|---|---|---|---|---|---|---|
a252023697c67309f4118e35c2b1923f99a88356 | Shane F. Carr | 2021-09-11T00:54:19 | Add IsCovariant trait (#1041) | diff --git a/provider/core/src/serde.rs b/provider/core/src/serde.rs
index c00a92886c..6f806eb64e 100644
--- a/provider/core/src/serde.rs
+++ b/provider/core/src/serde.rs
@@ -19,7 +19,6 @@
//!
//! [`DataProvider`]`<dyn `[`SerdeSeDataStruct`]`>` is used by data exporters such as `FilesystemExporter`.
-use crate::dat... | 6 | 183 | 29 |
369215a1184e85d524bcd121edd769a6ccf0dfdb | Manish Goregaokar | 2021-09-10T22:19:55 | Add [As]VarULE impls for Vec<T>/[T] (#1042)
* Clarify safety of from_byte_slice_unchecked
* Add from_byte_slice_unchecked to ULE
* Add VarULE impl for Vec<T>
* Add example for VarULE vec
* Make ULE and VarULE unsafe traits
See https://twitter.com/ManishEarth/status/1436387041114157057 , in
general people think tr... | diff --git a/utils/zerovec/src/ule/chars.rs b/utils/zerovec/src/ule/chars.rs
index 3ec5fc0a05..ea57c95752 100644
--- a/utils/zerovec/src/ule/chars.rs
+++ b/utils/zerovec/src/ule/chars.rs
@@ -39,7 +39,9 @@ use std::convert::TryFrom;
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub struct CharULE([u8; 4]);
-impl ULE ... | 6 | 156 | 11 |
8e66c5ea835b43a6a46e9b994b31b6d92f224aed | Shane F. Carr | 2021-09-09T18:58:59 | Improve safety of SerdeSeDataStructWrap (#1040) | diff --git a/provider/core/src/erased.rs b/provider/core/src/erased.rs
index 5333cc452e..96c1872c72 100644
--- a/provider/core/src/erased.rs
+++ b/provider/core/src/erased.rs
@@ -79,23 +79,12 @@ where
/// `Yoke` (i.e., `Rc::from(yoke)`).
fn upcast(other: DataPayload<'static, M>) -> DataPayload<'static, Erased... | 2 | 29 | 49 |
26b1be1d27a533ae9254c38c76573929fcf14491 | Greg Tatum | 2021-08-31T15:23:54 | Lint missing docs in icu_datetime (#725) | diff --git a/components/datetime/src/date.rs b/components/datetime/src/date.rs
index dfd2b5b3bb..bc38d5181a 100644
--- a/components/datetime/src/date.rs
+++ b/components/datetime/src/date.rs
@@ -2,6 +2,9 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x... | 13 | 129 | 6 |
22d4384959540d71da32831a3f8e62901aa60551 | Greg Tatum | 2021-08-31T15:10:59 | Add missing docs warnings and suppressions to the components directory (#955) | diff --git a/components/decimal/src/error.rs b/components/decimal/src/error.rs
index 61aa4b4cea..72d89f332e 100644
--- a/components/decimal/src/error.rs
+++ b/components/decimal/src/error.rs
@@ -6,6 +6,7 @@
use displaydoc::Display;
+#[allow(missing_docs)] // TODO(#1025) - Add missing docs.
#[derive(Display, Debug... | 22 | 50 | 0 |
36524d6f40f45a18e5afade7c1010adcd4659ab2 | iainireland | 2021-08-30T19:08:58 | Fix UnicodeSetBuilder::complement for empty sets (#961)
* Fix UnicodeSetBuilder::complement for empty sets
* Cargo fmt
Co-authored-by: Iain Ireland <iain.i.ireland@gmail.com> | diff --git a/components/uniset/src/builder.rs b/components/uniset/src/builder.rs
index 81c4e65bdd..e24b10f17e 100644
--- a/components/uniset/src/builder.rs
+++ b/components/uniset/src/builder.rs
@@ -364,6 +364,9 @@ impl UnicodeSetBuilder {
} else {
self.intervals.push((char::MAX as u32) + ... | 1 | 15 | 0 |
3c019c9c1ce1476a6e41325e22fbce1447dab127 | Shane F. Carr | 2021-08-27T18:06:22 | Add LiteMap benchmark binaries for Bincode, Postcard and tests for Rkyv (#1014)
* Bump minor version number of LiteMap for new methods | diff --git a/Cargo.lock b/Cargo.lock
index 28296f1911..2f48be0d7d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,6 +17,17 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
+[[package]]
+name = "ahash"
... | 6 | 356 | 3 |
7136f99745d3ac01ecc4baebd66a2dbbdbc9a97e | Shane F. Carr | 2021-08-26T06:23:09 | Remove ErasedDataStruct::clone_into_box() (#1013) | diff --git a/provider/core/src/erased.rs b/provider/core/src/erased.rs
index 808fdd7ee4..5333cc452e 100644
--- a/provider/core/src/erased.rs
+++ b/provider/core/src/erased.rs
@@ -17,9 +17,6 @@ use core::any::TypeId;
///
/// Requires the static lifetime in order to be convertible to [`Any`].
pub trait ErasedDataStruc... | 1 | 0 | 7 |
3d668128cfd7f4f04406950f779120c1c4b3d1a9 | Shane F. Carr | 2021-08-26T04:30:22 | Remove obsolete ToOwned impls for [SerdeSe/Erased]DataStruct (#1011) | diff --git a/provider/core/src/dynutil.rs b/provider/core/src/dynutil.rs
index bfdf69b490..e3d0ddd070 100644
--- a/provider/core/src/dynutil.rs
+++ b/provider/core/src/dynutil.rs
@@ -4,27 +4,6 @@
//! Utilities for using trait objects with `DataPayload`.
-/// Implement [`ToOwned`](alloc::borrow::ToOwned) on a trait... | 3 | 0 | 34 |
300b83a1ff5608fd9e8eadca6f9805c9155c3174 | Ting-Yu Lin | 2021-08-17T23:48:20 | Minor cleanup to line breaker (#949)
* Move line break test from lib.rs into line_breaker.rs
To consolidate the tests in line_breaker.rs and keep the lib.rs simple.
* Rename break_rule to line_break_rule
This gives a better symmetry with `word_break_rule` next to it.
* Remove ja_zh argument for LineBreakIt... | diff --git a/experimental/segmenter/benches/bench.rs b/experimental/segmenter/benches/bench.rs
index 4ec44adfb4..b2a169c8d2 100644
--- a/experimental/segmenter/benches/bench.rs
+++ b/experimental/segmenter/benches/bench.rs
@@ -28,7 +28,6 @@ fn line_break_iter_latin1(c: &mut Criterion) {
TEST_STR.as_byt... | 3 | 95 | 101 |
acfb8f4151f978edcb731a029ce22793830ff24a | Ting-Yu Lin | 2021-08-16T17:14:59 | Improve documentation for line breaker's public interfaces (#950) | diff --git a/experimental/segmenter/src/lib.rs b/experimental/segmenter/src/lib.rs
index c66afca31e..14740b3ba9 100644
--- a/experimental/segmenter/src/lib.rs
+++ b/experimental/segmenter/src/lib.rs
@@ -2,6 +2,8 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-o... | 2 | 59 | 13 |
07f659080d9beb013402570c6b18791a0ecd247f | Shane F. Carr | 2021-08-11T23:13:32 | Change benches to use static data provider (#892) | diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml
index ece6639336..2e1c217d9a 100644
--- a/components/datetime/Cargo.toml
+++ b/components/datetime/Cargo.toml
@@ -45,7 +45,7 @@ criterion = "0.3"
icu = { path = "../icu", default-features = false }
icu_benchmark_macros = { version = "0.3", p... | 7 | 9 | 9 |
220f4590e91bebe1aa71a1c60b78fe6c4e68abec | Manish Goregaokar | 2021-08-07T02:18:20 | Make icu_capi always no_std (#941) | diff --git a/ffi/capi/src/lib.rs b/ffi/capi/src/lib.rs
index 11e8eb7752..88a5dfcc53 100644
--- a/ffi/capi/src/lib.rs
+++ b/ffi/capi/src/lib.rs
@@ -6,8 +6,14 @@
all(target_os = "none", feature = "freertos"),
feature(alloc_error_handler)
)]
+#![no_std]
#![allow(clippy::upper_case_acronyms)]
-#![cfg_attr(targe... | 2 | 10 | 4 |
2c2f611bb6e4d604bdd40fa4d12687272bae0533 | Manish Goregaokar | 2021-08-05T23:16:01 | Support --keys in datagen (#938)
* Add --keys support to datagen
* use writeable | diff --git a/Cargo.lock b/Cargo.lock
index 43d205740b..ed37d94cba 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1018,6 +1018,7 @@ dependencies = [
"serde",
"simple_logger",
"tokio",
+ "writeable",
]
[[package]]
diff --git a/tools/datagen/Cargo.toml b/tools/datagen/Cargo.toml
index 149299103e..9bde0a0816 100644... | 3 | 18 | 4 |
066edd4c0d0328c6d2fcc039db3ff474c97815d3 | Shane F. Carr | 2021-08-05T07:03:51 | Add missing `#[serde(borrow)]` (#930) | diff --git a/components/decimal/src/provider.rs b/components/decimal/src/provider.rs
index 49c2ec8ad6..adf95af8ee 100644
--- a/components/decimal/src/provider.rs
+++ b/components/decimal/src/provider.rs
@@ -73,6 +73,7 @@ pub struct DecimalSymbolsV1<'data> {
pub decimal_separator: Cow<'data, str>,
/// Charac... | 1 | 1 | 0 |
d12a5c53366b650f27e1bad8bec9791f432df4ad | Manish Goregaokar | 2021-08-02T17:40:47 | Fix clippy warnings arising from Rust version upgrade (#923) | diff --git a/components/datetime/src/fields/symbols.rs b/components/datetime/src/fields/symbols.rs
index bb7d324080..62df9f4d09 100644
--- a/components/datetime/src/fields/symbols.rs
+++ b/components/datetime/src/fields/symbols.rs
@@ -262,6 +262,7 @@ impl From<Month> for FieldSymbol {
feature = "provider_serde",
... | 39 | 112 | 106 |
d3a5153c6da23e434a05ddfae441d2ecc39f1d5c | Shane F. Carr | 2021-07-29T23:53:06 | Bump Yoke to 0.2.3 | diff --git a/Cargo.lock b/Cargo.lock
index 393ff1467f..fa93707a44 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2706,7 +2706,7 @@ dependencies = [
[[package]]
name = "yoke"
-version = "0.2.2"
+version = "0.2.3"
dependencies = [
"bincode",
"serde",
diff --git a/utils/yoke/Cargo.toml b/utils/yoke/Cargo.toml
index... | 2 | 2 | 2 |
6044c644413be481b73d18821543f675317c2638 | Shane F. Carr | 2021-07-29T22:46:39 | Bump version numbers to 0.3 | diff --git a/Cargo.lock b/Cargo.lock
index f19c4bdb66..393ff1467f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -878,7 +878,7 @@ checksum = "71a816c97c42258aa5834d07590b718b4c9a598944cd39a52dc25b351185d678"
[[package]]
name = "icu"
-version = "0.2.0"
+version = "0.3.0"
dependencies = [
"fixed_decimal",
"icu_date... | 25 | 120 | 120 |
0b38c6f03d4c182d6dd899e300b8e1b207b74895 | Shane F. Carr | 2021-07-29T21:59:43 | Rename data errors to MissingResource (#893) | diff --git a/provider/blob/src/static_data_provider.rs b/provider/blob/src/static_data_provider.rs
index e504d8b838..0cca0a046a 100644
--- a/provider/blob/src/static_data_provider.rs
+++ b/provider/blob/src/static_data_provider.rs
@@ -67,7 +67,7 @@ impl StaticDataProvider {
let BlobSchema::V001(blob) = &self.b... | 16 | 31 | 31 |
871b9869064b1c056dd7ee13128a33158762bfaa | Shane F. Carr | 2021-07-29T18:14:47 | Improve docs in PluralRules and FixedDecimal (#886) | diff --git a/components/plurals/src/operands.rs b/components/plurals/src/operands.rs
index 7c7bed1503..4453403770 100644
--- a/components/plurals/src/operands.rs
+++ b/components/plurals/src/operands.rs
@@ -14,6 +14,19 @@ use fixed_decimal::FixedDecimal;
///
/// See [full operands description](http://unicode.org/repo... | 2 | 36 | 13 |
cd5b0d278ce455c13dfbd29a4a84694aa9f026fc | Shane F. Carr | 2021-07-29T17:29:28 | Document certain DataProvider impls that return `'static` (#916)
Reverts 4b48cf79996c997658606e30503ad46f4c586003 | diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs
index 2ccf374a66..050db5d85e 100644
--- a/provider/core/src/data_provider.rs
+++ b/provider/core/src/data_provider.rs
@@ -188,8 +188,9 @@ where
M: DataMarker<'data>,
M::Yokeable: ZeroCopyFrom<M::Cart>,
{
- /// Convert an ... | 3 | 16 | 14 |
5970335819dd63caf5653ca76529bd9e9e90650e | Shane F. Carr | 2021-07-27T22:39:49 | Fix FFI lifetimes for DataProvider (#914) | diff --git a/ffi/capi/src/decimal.rs b/ffi/capi/src/decimal.rs
index 5c0e63598b..d404ca087f 100644
--- a/ffi/capi/src/decimal.rs
+++ b/ffi/capi/src/decimal.rs
@@ -14,13 +14,13 @@ use icu_decimal::FixedDecimalFormat;
/// Opaque type for use behind a pointer, is [`FixedDecimalFormat`]
///
/// Can be obtained via [`icu... | 3 | 12 | 12 |
4b48cf79996c997658606e30503ad46f4c586003 | Shane F. Carr | 2021-07-26T22:56:18 | Change FsDataProvider to 'static (#902) | diff --git a/provider/fs/src/fs_data_provider.rs b/provider/fs/src/fs_data_provider.rs
index 0388184a46..ae6168b53c 100644
--- a/provider/fs/src/fs_data_provider.rs
+++ b/provider/fs/src/fs_data_provider.rs
@@ -94,15 +94,20 @@ impl FsDataProvider {
}
}
-impl<'d, 's, M> DataProvider<'d, 's, M> for FsDataProvider... | 1 | 8 | 3 |
7ed372f52c29b3740a885f48fdfc00a795f13112 | Shane F. Carr | 2021-07-26T17:49:28 | Remove DataPayload::from_borrowed (#898) | diff --git a/components/datetime/src/format/zoned_datetime.rs b/components/datetime/src/format/zoned_datetime.rs
index a1a1c859f6..4e0da7dc95 100644
--- a/components/datetime/src/format/zoned_datetime.rs
+++ b/components/datetime/src/format/zoned_datetime.rs
@@ -13,15 +13,15 @@ use writeable::Writeable;
use super::dat... | 10 | 105 | 203 |
774ee840a9630b225496caf797badb6bb6e38094 | Shane F. Carr | 2021-07-25T17:13:44 | Improve Yoke Clone docs, saying it is not generally expensive (#899) | diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs
index 5a20d7027f..9e7b374f0d 100644
--- a/provider/core/src/data_provider.rs
+++ b/provider/core/src/data_provider.rs
@@ -140,6 +140,8 @@ where
}
}
+/// Cloning a DataPayload is generally a cheap operation.
+/// See notes in th... | 2 | 6 | 0 |
f5bc1660a2efa1c88f6ab3ee7a6e68af92498ffd | Shane F. Carr | 2021-07-23T21:14:52 | Implement working Clone and PartialEq on DataPayload (#895) | diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs
index 576fc95372..5a20d7027f 100644
--- a/provider/core/src/data_provider.rs
+++ b/provider/core/src/data_provider.rs
@@ -10,6 +10,7 @@ use crate::error::Error;
use crate::marker::DataMarker;
use crate::resource::ResourceKey;
use cr... | 2 | 47 | 6 |
49ece439952c04a2a5e200c63fc696b176aa79e2 | Shane F. Carr | 2021-07-23T20:46:29 | Add working Clone impl for Yoke (#894)
Co-authored-by: Manish Goregaokar <manishsmail@gmail.com> | diff --git a/utils/yoke/src/trait_hack.rs b/utils/yoke/src/trait_hack.rs
index e30cc50b8f..1db1243854 100644
--- a/utils/yoke/src/trait_hack.rs
+++ b/utils/yoke/src/trait_hack.rs
@@ -203,6 +203,8 @@
//! }
//! ```
+use core::mem;
+
/// A wrapper around a type `T`, forwarding trait calls down to the inner type.
///... | 2 | 58 | 4 |
b76cb7961957945b2a1576d5c8f1ad25eb280279 | Manish Goregaokar | 2021-07-22T17:29:28 | Move icu_plurals and icu_decimal to no_std (#888)
* no_std in pluralrules
* autoreplace
* fix errors
* powi
* Fix icu_plurals use in ffi/ecma402
* fmt
* add no_std to fixeddecimal
* autoreplace
* fmt
* fix error
* require std feature for pluralrules test | diff --git a/Cargo.lock b/Cargo.lock
index 1b2c788336..0e767dcb0d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -899,6 +899,7 @@ dependencies = [
"ecma402_traits",
"icu",
"icu_locid",
+ "icu_plurals",
"icu_provider",
"icu_testdata",
"serde",
diff --git a/components/decimal/Cargo.toml b/components/decimal/Carg... | 17 | 51 | 20 |
ed677ed1baf0e2181edb8dc2a58ac10e3da8387b | Elango | 2021-07-22T17:20:51 | Add iterator of inversion list ranges to UnicodeSet (#839) | diff --git a/components/uniset/benches/inv_list.rs b/components/uniset/benches/inv_list.rs
index ec35d33a54..a8e8775a41 100644
--- a/components/uniset/benches/inv_list.rs
+++ b/components/uniset/benches/inv_list.rs
@@ -7,9 +7,9 @@ use icu_uniset::UnicodeSet;
use std::char;
fn uniset_bench(c: &mut Criterion) {
- ... | 5 | 276 | 210 |
77e8269d25798b7a4963bee1a0b639659bfe2d57 | Manish Goregaokar | 2021-07-22T16:19:40 | Move locale_canonicalizer and StaticDataProvider to no_std, use SDP correctly in capi (#880)
* make locale_canonicalizer no_std
* Remove fs provider dep from capi when there is no OS
* Move testdata to no_std
* fmt
* include sdp in test
* fixup import | diff --git a/components/locale_canonicalizer/src/lib.rs b/components/locale_canonicalizer/src/lib.rs
index 80e9435c06..51dbf1fa24 100644
--- a/components/locale_canonicalizer/src/lib.rs
+++ b/components/locale_canonicalizer/src/lib.rs
@@ -75,6 +75,10 @@
//! [`CLDR`]: http://cldr.unicode.org/
//! [`UTS #35: Unicode LD... | 8 | 37 | 7 |
ff56a70f588b63f134714956a8eb8e1ee37a99d3 | Manish Goregaokar | 2021-07-21T00:00:20 | Move locid and fixed_decimal over to no_std (#868)
* Fix fixed-decimal for no_std
* Move locid to no_std
* Fix unused error
* remove displaydoc/std | diff --git a/components/locid/Cargo.toml b/components/locid/Cargo.toml
index cfe0b000be..52b602daed 100644
--- a/components/locid/Cargo.toml
+++ b/components/locid/Cargo.toml
@@ -49,6 +49,7 @@ bench = false # This option is required for Benchmark CI
[features]
default = []
+std = []
bench = []
[[bench]]
diff -... | 33 | 138 | 99 |
e5f7a5e5c737ee6e3ba0c53e789d131d3eb277a8 | Manish Goregaokar | 2021-07-20T00:07:01 | Remove use of `dyn Error` in library code in favor of Strings (#867)
* Remove std::error::Error from provider
* Remove std::error::Error from fs data provider
* Pull in serde std only when exporting
* fmt | diff --git a/provider/cldr/src/support.rs b/provider/cldr/src/support.rs
index 9e80e9ff98..01c9faba92 100644
--- a/provider/cldr/src/support.rs
+++ b/provider/cldr/src/support.rs
@@ -38,7 +38,7 @@ where
+ IterableDataProviderCore
+ KeyedDataProvider
+ TryFrom<&'b dyn CldrPaths>,
- <T as Tr... | 6 | 21 | 18 |
a8377791ffc70c7c6f3aa7f6aa27023e0e59aaca | Manish Goregaokar | 2021-07-19T18:29:45 | Progress towards no_std (#865)
* hardcode thumb
* Fix writeable
* Fix stable_deref_trait dep
* no-default-features on tinystr
* Update tinystr
* Use serde/serde-json with alloc feature
* Move to newer resolver
* Bump tinystr
* Bump tinystr again
* fix optional=true after rebase
* Add allo... | diff --git a/Cargo.lock b/Cargo.lock
index 860dbda894..da3ebabc86 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2169,9 +2169,9 @@ dependencies = [
[[package]]
name = "tinystr"
-version = "0.4.5"
+version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b0bc8f45dc08e13992f159... | 31 | 89 | 58 |
56b5cf828609510cf667cbe3ae2437ba722a358c | Manish Goregaokar | 2021-07-16T23:49:17 | Replace thiserror with displaydoc (#863)
* thiserror -> displaydoc
fastmod "thiserror = .*$" "displaydoc = { version = \"0.2.3\", default-features = false }"
* thiserror::Error -> displaydoc::Display
fastmod thiserror::Error displaydoc::Display
* fastmod "#\[error" "#[displaydoc"
* derive(Error) -> deri... | diff --git a/Cargo.lock b/Cargo.lock
index d9c1122d22..970b717d02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -446,6 +446,17 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "displaydoc"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3bf95dc3f046b9da4f2d51833c... | 40 | 417 | 208 |
cce8f224c263fb579d3f5ff02e6589e3aa9d9717 | Manish Goregaokar | 2021-07-13T22:06:24 | Bump yoke to 0.2.1 (#858)
* Bump yoke to 0.2.1
* lockfile | diff --git a/Cargo.lock b/Cargo.lock
index 3e8078f17b..d9c1122d22 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2559,7 +2559,7 @@ dependencies = [
[[package]]
name = "yoke"
-version = "0.2.0"
+version = "0.2.1"
dependencies = [
"bincode",
"serde",
diff --git a/utils/yoke/Cargo.toml b/utils/yoke/Cargo.toml
index... | 2 | 2 | 2 |
b7d35d1e2085c8429da3266044bac15dfab49ce4 | Manish Goregaokar | 2021-07-13T18:20:35 | Clean up zerovec::samples so that it is not available outside of tests (#857)
* Clean up zerovec::samples
* fix unused warning | diff --git a/utils/zerovec/benches/zerovec.rs b/utils/zerovec/benches/zerovec.rs
index fd6171f0c6..b354eadbe8 100644
--- a/utils/zerovec/benches/zerovec.rs
+++ b/utils/zerovec/benches/zerovec.rs
@@ -8,7 +8,10 @@ use rand_distr::{Distribution, LogNormal};
use rand_pcg::Lcg64Xsh32;
use std::fmt;
-use zerovec::samples... | 5 | 17 | 3 |
0d428d309b58300a577def53d257337df853f053 | Manish Goregaokar | 2021-07-02T16:12:54 | Add projection utilities to Yoke (#833)
* typo fix
* Introduce CloneableCart
* Add projection utilities
* use a phantom lifetime
* use const for safety docs
* more safety comment
* Improve safety comment
* improve comment about compiler bugs
* fix parentheses
* Make project() moving
* saf... | diff --git a/Cargo.lock b/Cargo.lock
index cfc90b9750..691b504c56 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2533,7 +2533,7 @@ dependencies = [
[[package]]
name = "yoke"
-version = "0.1.0"
+version = "0.2.0"
dependencies = [
"bincode",
"serde",
diff --git a/provider/core/Cargo.toml b/provider/core/Cargo.toml... | 16 | 362 | 61 |
67bd340dd7cb6e1a958ceb36f8f1d4e73c63742e | Manish Goregaokar | 2021-06-26T17:05:01 | Add initial calendars crate (#827)
* Add initial calendars crate
* rm serde
* review fixes
* fmt
* Move iso constructors to Date
* review fixes
* rm where
* scope Debug bound
* construct_unchecked -> from_raw
* fmt
* add Default
* fix clippy
* +errors | diff --git a/Cargo.lock b/Cargo.lock
index 96e0709482..cfc90b9750 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,6 +844,10 @@ dependencies = [
"serde_json",
]
+[[package]]
+name = "icu_calendar"
+version = "0.2.0"
+
[[package]]
name = "icu_capi"
version = "0.1.0"
diff --git a/Cargo.toml b/Cargo.toml
index 7d5... | 9 | 618 | 0 |
085c8166f01a963b811d752ac41945a49956eb2f | Erik Nordin | 2021-06-25T21:23:29 | Rename Yokeable::with_mut() to Yokeable::transform_mut() (#828) | diff --git a/provider/core/src/data_provider/test.rs b/provider/core/src/data_provider/test.rs
index c16f09eedd..e90ad8c2e1 100644
--- a/provider/core/src/data_provider/test.rs
+++ b/provider/core/src/data_provider/test.rs
@@ -40,7 +40,7 @@ unsafe impl<'a> Yokeable<'a> for HelloAlt {
unsafe fn make(from: Self::Out... | 11 | 27 | 27 |
2b7ca3bd55486daafbcf579d05243773e006ec89 | Shane F. Carr | 2021-06-23T22:04:37 | Add RcBuf variant to DataPayload (#816)
- Adds yoke::trait_hack and other Yoke improvements | diff --git a/experimental/provider_static/src/lib.rs b/experimental/provider_static/src/lib.rs
index 93580f393d..1bd1395b0e 100644
--- a/experimental/provider_static/src/lib.rs
+++ b/experimental/provider_static/src/lib.rs
@@ -63,14 +63,14 @@ where
}
}
-impl<'de> SerdeDeDataProvider<'de> for StaticDataProvider ... | 13 | 664 | 139 |
b56441cc06ca09210d7859e7628f06ac7bb7336c | Elango | 2021-06-21T05:00:43 | Unicode property struct cleanup (#677) | diff --git a/Cargo.lock b/Cargo.lock
index 6760048b9a..c6ceee3442 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1127,6 +1127,7 @@ dependencies = [
"icu_provider",
"litemap",
"serde",
+ "serde_json",
"thiserror",
"tinystr",
]
diff --git a/components/uniset/Cargo.toml b/components/uniset/Cargo.toml
index 4c8986... | 8 | 188 | 129 |
c5135af6babd7cdbea02f0971ef8656fb6d68b0b | Zibi Braniecki | 2021-06-18T00:10:44 | Only load symbols data if pattern requires them. (#791) | diff --git a/components/datetime/src/datetime.rs b/components/datetime/src/datetime.rs
index 01af677e04..3dbb1f65c7 100644
--- a/components/datetime/src/datetime.rs
+++ b/components/datetime/src/datetime.rs
@@ -3,10 +3,8 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use crate::{
- f... | 4 | 134 | 73 |
fb95cfe3d62d718fdb02e5209fd514394e6958b9 | Ting-Yu Lin | 2021-06-10T14:25:00 | Simplify get_linebreak_property_utf32_with_rule() (#777)
* Remove unused ja_zh parameter
* Simplify get_linebreak_property_utf32_with_rule()
This shouldn't change the behavior. | diff --git a/experimental/segmenter/src/line_breaker.rs b/experimental/segmenter/src/line_breaker.rs
index f895a5f330..2a252dbd18 100644
--- a/experimental/segmenter/src/line_breaker.rs
+++ b/experimental/segmenter/src/line_breaker.rs
@@ -39,37 +39,24 @@ fn get_linebreak_property_utf32_with_rule(
codepoint: u32,
... | 1 | 14 | 33 |
d8af2a93578bfa44027f540b38d92b9435e52957 | Manish Goregaokar | 2021-06-10T13:49:50 | Fix links in docs (#786)
* Fix links in docs
* fix fixeddecimal | diff --git a/components/icu/Cargo.toml b/components/icu/Cargo.toml
index 748a07b514..557f5cb42e 100644
--- a/components/icu/Cargo.toml
+++ b/components/icu/Cargo.toml
@@ -63,11 +63,14 @@ version = "0.2"
path = "../uniset"
default-features = false
+[dependencies.fixed_decimal]
+version = "0.2"
+path = "../../utils/f... | 4 | 7 | 4 |
2a47704e5e3d8fd276de2a530feceb43e74d5a61 | Manish Goregaokar | 2021-06-08T22:51:51 | Switch static data provider to using bincode to reduce heap footprint (#775) | diff --git a/Cargo.lock b/Cargo.lock
index 7507fd20a4..abe81497b7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1067,9 +1067,11 @@ dependencies = [
name = "icu_provider_static"
version = "0.2.0"
dependencies = [
+ "bincode",
"icu",
"icu_locid",
"icu_provider",
+ "litemap",
"serde",
"serde_json",
]
diff --g... | 4 | 28 | 62 |
3420be93fb29c6adf7c21e17f1c2eae8beaf51aa | Manish Goregaokar | 2021-06-04T22:54:08 | Switch DataPayload::Owned over to using Yoke::new_always_owned (#765)
* Switch DataPayload::Owned over to using Yoke::new_always_owned
* lint | diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs
index e117624c94..f4df940f90 100644
--- a/provider/core/src/data_provider.rs
+++ b/provider/core/src/data_provider.rs
@@ -97,7 +97,7 @@ where
{
Borrowed(Yoke<M::Yokeable, &'d M::Cart>),
RcStruct(Yoke<M::Yokeable, Rc<M::Cart>... | 3 | 15 | 3 |
9ec4ae2608e9095313acb56ca404c793581d7ba4 | Manish Goregaokar | 2021-06-04T20:46:19 | Add Yoke::new_always_owned (#762)
* Add Yoke::new_always_owned
* lint | diff --git a/utils/yoke/src/yoke.rs b/utils/yoke/src/yoke.rs
index 51bac350a0..cd6862135f 100644
--- a/utils/yoke/src/yoke.rs
+++ b/utils/yoke/src/yoke.rs
@@ -295,6 +295,34 @@ impl<Y: for<'a> Yokeable<'a>, C> Yoke<Y, C> {
}
}
+impl<Y: for<'a> Yokeable<'a>> Yoke<Y, ()> {
+ /// Construct a new [`Yoke`] from st... | 1 | 31 | 0 |
823c497bc9854ceae5f20d46890117d76aea9af3 | Manish Goregaokar | 2021-06-04T00:20:50 | Add quick-and-dirty static data provider for WASM testing (#759)
* Add quick-and-dirty static data provider for WASM testing
* small amount of docs
* Review fixes
* ci fixes
* more ci | diff --git a/Cargo.lock b/Cargo.lock
index 480a2858a9..0e4e3d8542 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1062,6 +1062,17 @@ dependencies = [
"tinystr",
]
+[[package]]
+name = "icu_provider_static"
+version = "0.2.0"
+dependencies = [
+ "icu",
+ "icu_locid",
+ "icu_provider",
+ "serde",
+ "serde_json",
+]
+
... | 6 | 205 | 0 |
c9b8b626f5b8ef58448e6b695a4473ce2b172168 | Erik Nordin | 2021-06-02T22:34:58 | Use TinyStr8 for time-zone variant identifiers (#750)
* Use TinyStr8 for time-zone variants
- Update `TimeZoneFormatsV1.region_format_variants` from `str` to
`TinyStr8`.
- Update `MetaZoneSpecificNamesV1` key form `str` to `TinyStr8`.
- Update `map_access` macro to take key types of `str` or `TinyStr8`.
The... | diff --git a/components/datetime/src/date.rs b/components/datetime/src/date.rs
index ef5507dcd6..d96f19fff3 100644
--- a/components/datetime/src/date.rs
+++ b/components/datetime/src/date.rs
@@ -85,7 +85,7 @@ pub trait TimeZoneInput {
/// The time variant (e.g. "daylight", "standard")
/// TODO(#619) use Tin... | 8 | 50 | 24 |
65863887250dc86947386299ad64210f478a36b7 | Dan Minor | 2021-05-27T16:22:29 | Add include to capi (#738) | diff --git a/ffi/capi/Cargo.toml b/ffi/capi/Cargo.toml
index 734a39f5ee..374d015fdd 100644
--- a/ffi/capi/Cargo.toml
+++ b/ffi/capi/Cargo.toml
@@ -17,6 +17,7 @@ include = [
"examples/**/*",
"benches/**/*",
"tests/**/*",
+ "include/**/*",
"Cargo.toml",
"README.md"
] | 1 | 1 | 0 |
eb112c397b37a57a551f0c972b9f7220a5177738 | Shane F. Carr | 2021-05-24T16:27:59 | Make cow field of DataPayload crate-private | diff --git a/components/datetime/src/datetime.rs b/components/datetime/src/datetime.rs
index 0007100e83..d5d731c5eb 100644
--- a/components/datetime/src/datetime.rs
+++ b/components/datetime/src/datetime.rs
@@ -145,13 +145,9 @@ impl<'d> DateTimeFormat<'d> {
) -> Self {
let locale = locale.into();
- ... | 13 | 130 | 81 |
0400ad1de102a0774618859ebee214d799b65e40 | Shane F. Carr | 2021-05-14T20:41:26 | Refactoring and generalizing impl_dyn_provider! (#723) | diff --git a/experimental/provider_ppucd/src/support.rs b/experimental/provider_ppucd/src/support.rs
index ed900de01c..72e6185e5e 100644
--- a/experimental/provider_ppucd/src/support.rs
+++ b/experimental/provider_ppucd/src/support.rs
@@ -97,7 +97,9 @@ impl<'s> TryFrom<&'s str> for PpucdDataProvider<'s> {
}
}
-... | 14 | 121 | 212 |
0eb7f7bb9bfd6ec45e01258f44bdfdc15d6e5f6a | Manish Goregaokar | 2021-05-13T18:58:35 | Fix clippy in zerovec (#719) | diff --git a/utils/zerovec/src/map/kv.rs b/utils/zerovec/src/map/kv.rs
index 42be4aacde..3c6abdc93c 100644
--- a/utils/zerovec/src/map/kv.rs
+++ b/utils/zerovec/src/map/kv.rs
@@ -14,6 +14,7 @@ use std::cmp::Ordering;
/// implementing your own [`AsULE`] or [`AsVarULE`] type you may wish to implement
/// this trait.
/... | 6 | 10 | 3 |
51e1e72b8a6a4d2df0221e8f617e3d9a6819b815 | Manish Goregaokar | 2021-05-11T17:19:50 | Fix keyword in Cargo.toml (#714)
* Fix keyword in Cargo.toml
* Update zerovec crate | diff --git a/Cargo.lock b/Cargo.lock
index 71d18b6a1f..563d3b260d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2471,7 +2471,7 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.2.0"
+version = "0.2.1"
dependencies = [
"bincode",
"criterion",
diff --git a/utils/yoke/Cargo.toml b/utils/yoke/Cargo.tom... | 3 | 3 | 3 |
82ace5ec626d683e1ec3a5783d2a8c9125aada2b | Manish Goregaokar | 2021-05-11T03:42:22 | Add yoke crate (#705)
* Add yoke crate
* Fix lint errors
* Fix lint again
* Clarifications for Miguel
* Address shane's comments
* Swap Yokeable::new()
* more fmt
* mention lifetime
* Add Cartable for references
* Remove unwrapping Cart impl on Option, move to having more attach methods
* Reorganize yoke cod... | diff --git a/Cargo.lock b/Cargo.lock
index 7428b13c66..71d18b6a1f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1954,6 +1954,12 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "stable_deref_trait"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8f112729512f8e4... | 10 | 868 | 0 |
8e93c88897cdd086c49524ef05c7f383a885d804 | Zibi Braniecki | 2021-04-29T18:30:16 | Add description to decimal | diff --git a/components/decimal/Cargo.toml b/components/decimal/Cargo.toml
index b66906c3df..2bade15b4e 100644
--- a/components/decimal/Cargo.toml
+++ b/components/decimal/Cargo.toml
@@ -4,6 +4,7 @@
[package]
name = "icu_decimal"
+description = "API for formatting basic decimal numbers in a locale-sensitive way"
v... | 1 | 1 | 0 |
20fc4c5a5936e8d344c67236541911b4913ef6f0 | Zibi Braniecki | 2021-04-29T18:17:03 | Add description to locale_canonicalizer | diff --git a/components/locale_canonicalizer/Cargo.toml b/components/locale_canonicalizer/Cargo.toml
index 6950214634..3e7a6ffe0d 100644
--- a/components/locale_canonicalizer/Cargo.toml
+++ b/components/locale_canonicalizer/Cargo.toml
@@ -4,6 +4,7 @@
[package]
name = "icu_locale_canonicalizer"
+description = "API f... | 1 | 1 | 0 |
377ba0e6c90280d1dfa6973fce643c439b021c3b | Zibi Braniecki | 2021-04-29T18:13:48 | Add benches to includes (#692) | diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml
index c21ced7109..1f51788806 100644
--- a/components/datetime/Cargo.toml
+++ b/components/datetime/Cargo.toml
@@ -16,6 +16,7 @@ categories = ["internationalization"]
include = [
"src/**/*",
"examples/**/*",
+ "benches/**/*",
... | 22 | 22 | 0 |
750dc07d0ee12a2f9d19aa435a4eeb42631f3a79 | Greg Tatum | 2021-04-29T05:23:15 | Hide skeleton docs (#689) | diff --git a/components/datetime/src/lib.rs b/components/datetime/src/lib.rs
index 715133f58b..43c183ad40 100644
--- a/components/datetime/src/lib.rs
+++ b/components/datetime/src/lib.rs
@@ -84,6 +84,7 @@ pub mod options;
#[doc(hidden)]
pub mod pattern;
pub mod provider;
+#[doc(hidden)]
pub mod skeleton;
// TODO(#... | 2 | 3 | 2 |
fc6315e0c35b57db3fc1b35d80325d320a94a71b | Shane F. Carr | 2021-04-28T16:07:08 | Make docs for provider module consistent (#683) | diff --git a/components/datetime/src/provider/mod.rs b/components/datetime/src/provider/mod.rs
index 123d8d0944..b506ecdcf8 100644
--- a/components/datetime/src/provider/mod.rs
+++ b/components/datetime/src/provider/mod.rs
@@ -2,9 +2,9 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: http... | 5 | 15 | 3 |
04ec2da09a759409019103e3aa7ca65337811cd1 | Greg Tatum | 2021-04-26T19:04:45 | Change the components bag to default to None (#675) | diff --git a/components/datetime/src/options/components.rs b/components/datetime/src/options/components.rs
index ac16735864..924612e6a6 100644
--- a/components/datetime/src/options/components.rs
+++ b/components/datetime/src/options/components.rs
@@ -281,14 +281,14 @@ impl Default for Bag {
fn default() -> Self {
... | 2 | 33 | 50 |
74eb46d37209c0a4200826eaa0322a33bf2462cf | Manish Goregaokar | 2021-04-23T17:40:15 | Add ZeroMap (#668)
* Add scaffolding traits for ZeroMap
* Add ZeroMap methods
* Add remove(), try_append*)
* Some basic methods
* Copy over LiteMap tests
* Add SerializeType
* Add iterators
* Add serde
* Add docs
* Use individual macros
* Add sized-ULE helper functions
* Make make_mut ... | diff --git a/utils/zerovec/src/lib.rs b/utils/zerovec/src/lib.rs
index ac7ed8fda3..736b1e316b 100644
--- a/utils/zerovec/src/lib.rs
+++ b/utils/zerovec/src/lib.rs
@@ -73,10 +73,12 @@
//! # } // feature = "serde"
//! ```
+pub mod map;
pub mod samples;
pub mod ule;
mod varzerovec;
mod zerovec;
+pub use crate::m... | 8 | 707 | 2 |
7d78c20bd171cbdf15fd9026bac4e6b2997baa41 | Manish Goregaokar | 2021-04-21T02:44:52 | Add VarZeroVec::into_owned() (#666) | diff --git a/utils/zerovec/src/varzerovec/mod.rs b/utils/zerovec/src/varzerovec/mod.rs
index b64744f053..83d76dffba 100644
--- a/utils/zerovec/src/varzerovec/mod.rs
+++ b/utils/zerovec/src/varzerovec/mod.rs
@@ -327,15 +327,45 @@ impl<'a, T: AsVarULE> VarZeroVec<'a, T> {
}
}
+ /// Converts a borrowed ... | 2 | 41 | 11 |
6be34fd43a9ab2d068009105b3027c52c50367bc | Manish Goregaokar | 2021-04-18T14:18:34 | Add metadata fields to icu_benchmark_macros (#656) | diff --git a/tools/benchmark/macros/Cargo.toml b/tools/benchmark/macros/Cargo.toml
index 288049d937..e39f3689c8 100644
--- a/tools/benchmark/macros/Cargo.toml
+++ b/tools/benchmark/macros/Cargo.toml
@@ -7,6 +7,9 @@ name = "icu_benchmark_macros"
authors = ["The ICU4X Project Developers"]
edition = "2018"
version = "0... | 1 | 3 | 0 |
cbf7945f62fff01547db32baf9712810b41dd17d | Shane F. Carr | 2021-04-17T15:40:53 | ZeroVec: More docs and code cleanup (#658) | diff --git a/utils/zerovec/src/ule/chars.rs b/utils/zerovec/src/ule/chars.rs
index 32850524dd..dc8b0aba05 100644
--- a/utils/zerovec/src/ule/chars.rs
+++ b/utils/zerovec/src/ule/chars.rs
@@ -11,6 +11,29 @@ use std::convert::TryFrom;
///
/// The bytes of a `CharULE` are guaranteed to represent a little-endian-encoded ... | 2 | 29 | 9 |
1479e8caacd2004fd43c127d74a649318e7edded | Manish Goregaokar | 2021-04-17T01:14:42 | Add VarZeroVec (#653)
* Add VarZeroVec
* Move varzerovec into toplevel module
* Add VarULE docs, remove inline(always)
* SliceComponents::new() -> SliceComponents::try_from_bytes()
* Switch from u64 to u32 in VarZeroVec
* Address zibi's comments
* Use checked_add | diff --git a/Cargo.lock b/Cargo.lock
index 630b51e751..718a2d1feb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2624,6 +2624,7 @@ version = "0.2.0"
dependencies = [
"bincode",
"criterion",
+ "either",
"getrandom 0.2.2",
"iai",
"icu_benchmark_macros",
diff --git a/utils/zerovec/Cargo.toml b/utils/zerovec/Cargo... | 11 | 994 | 26 |
a3d0a257cb7588fe912bd8a114e4ebb3fbf41280 | Zibi Braniecki | 2021-04-15T04:32:52 | Update tinystr to 0.4.5 for perf wins on locid and locale_canonicalizer. (#646)
* Update tinystr to 0.4.4 for perf wins on locid and locale_canonicalizer.
* Update to tinystr 0.4.5 | diff --git a/Cargo.lock b/Cargo.lock
index 9d8a51d8ac..d57b10fdea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2311,9 +2311,9 @@ dependencies = [
[[package]]
name = "tinystr"
-version = "0.4.3"
+version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27aaed4540fcc2440c36fe3a... | 7 | 8 | 8 |
6d99323dc945a09af01d1147477584b469b6fe4b | Zibi Braniecki | 2021-04-13T18:30:56 | Mute clippy warnings in a few places, apply the suggestions in remaining cases. (#642)
* Mute clippy warnings in a few places, apply the suggestions in remaining cases.
* Fix clippy fmt
* Separate line after license header
* Remove accidentally added diffs | diff --git a/components/capi/src/lib.rs b/components/capi/src/lib.rs
index 3a212d0887..7f14684479 100644
--- a/components/capi/src/lib.rs
+++ b/components/capi/src/lib.rs
@@ -2,6 +2,8 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE )... | 11 | 31 | 26 |
076a9194e1d28f1cbbaad6b9ae75969404d54e59 | Elango | 2021-04-13T06:19:59 | Add comment discouraging use of uniset::props (#627) | diff --git a/components/uniset/src/props.rs b/components/uniset/src/props.rs
index 9478e40f95..b368c761c2 100644
--- a/components/uniset/src/props.rs
+++ b/components/uniset/src/props.rs
@@ -2,6 +2,9 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blo... | 1 | 3 | 0 |
6d861fc03ba78bfcf9da37136ef4685d590857e9 | Manish Goregaokar | 2021-04-12T23:22:39 | Make all crates use the same `include` keys (#635)
* Give all crates identical include keys
* Add exception for testdata | diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml
index 4a0a47a489..ee0d6db8b0 100644
--- a/components/datetime/Cargo.toml
+++ b/components/datetime/Cargo.toml
@@ -12,10 +12,11 @@ readme = "README.md"
repository = "https://github.com/unicode-org/icu4x"
license-file = "../../LICENSE"
catego... | 22 | 69 | 21 |
d75f52dd9ae556097d1c7c44a5e642a9cbce859e | Erik Nordin | 2021-04-09T04:45:22 | Pass FieldLength by value in Field trait (#625)
FieldLength is a simple numeric enum, and a copy type.
We should utilize that quality and pass it by value
unless a reference is explicitly needed. | diff --git a/components/datetime/src/fields/mod.rs b/components/datetime/src/fields/mod.rs
index 5d3f659007..005fa6f2af 100644
--- a/components/datetime/src/fields/mod.rs
+++ b/components/datetime/src/fields/mod.rs
@@ -40,14 +40,14 @@ pub struct Field {
impl Field {
pub fn get_length_type(&self) -> TextOrNumeric ... | 2 | 15 | 15 |
03be3a1f8fc383d9cb4723ab62bae367e645c32f | Manish Goregaokar | 2021-04-08T02:10:56 | Add lower-level data API to PluralRules (#575)
* Add lower-level data API to PluralRules
* Switch to using PluralRulesV1
* Move code to resolver module; turn into free function | diff --git a/components/plurals/src/lib.rs b/components/plurals/src/lib.rs
index aab58b40e0..96106792ad 100644
--- a/components/plurals/src/lib.rs
+++ b/components/plurals/src/lib.rs
@@ -76,6 +76,7 @@ pub use error::PluralRulesError;
use icu_locid::LanguageIdentifier;
use icu_provider::prelude::*;
pub use operands::... | 3 | 51 | 24 |
41419a9b5b08f1408d6b72b08d0797de49ca5e3b | Shane F. Carr | 2021-04-04T22:36:59 | Remove 'static requirement from CLDR transformers (#610) | diff --git a/components/provider_cldr/src/support.rs b/components/provider_cldr/src/support.rs
index 9642943018..ed0ec94a20 100644
--- a/components/provider_cldr/src/support.rs
+++ b/components/provider_cldr/src/support.rs
@@ -3,7 +3,6 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use ... | 6 | 44 | 91 |
6991943a7378dadc5284d2ff487edc09f553a8ce | Greg Tatum | 2021-03-31T20:45:52 | Simplify DeserializeSkeletonBincode with one less branch (#582) | diff --git a/components/datetime/src/skeleton.rs b/components/datetime/src/skeleton.rs
index 4a1072119d..b5b507fac4 100644
--- a/components/datetime/src/skeleton.rs
+++ b/components/datetime/src/skeleton.rs
@@ -92,15 +92,12 @@ impl<'de> de::Visitor<'de> for DeserializeSkeletonBincode {
let mut items: SmallVec<... | 1 | 7 | 10 |
b6ed6f058a0c3b6566eac78a58f47303bf48830f | Erik Nordin | 2021-03-16T18:00:03 | Implement FromIterator for LiteMap (#544)
* Implement FromIterator for LiteMap
* Fix ordering of size-hint match to be more intuitive
* Update comments
* Clean up function names
* Update comments
* Rename extend_from_sorted to try_extend_from_sorted
- This better self-documents its fallibility
* M... | diff --git a/utils/litemap/src/map.rs b/utils/litemap/src/map.rs
index fd920b52da..377f944ed6 100644
--- a/utils/litemap/src/map.rs
+++ b/utils/litemap/src/map.rs
@@ -2,9 +2,9 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-use... | 1 | 61 | 5 |
2d6664a376df209f86d4af47f0a686b91b8172e0 | Zibi Braniecki | 2021-03-05T15:40:03 | Move DTF to only store DateSymbols and a single pattern. (#518) | diff --git a/components/datetime/src/format.rs b/components/datetime/src/format.rs
index fbbe236d75..52e5d0af71 100644
--- a/components/datetime/src/format.rs
+++ b/components/datetime/src/format.rs
@@ -46,7 +46,7 @@ where
T: DateTimeInput,
{
pub(crate) pattern: &'l Pattern,
- pub(crate) data: &'l provide... | 2 | 29 | 18 |
79968ba98f4732cf9f01b96f0975a93e4d250658 | Manish Goregaokar | 2021-03-04T19:09:51 | Add is_empty to litemap (#532) | diff --git a/utils/litemap/src/map.rs b/utils/litemap/src/map.rs
index ab91884067..fb9aae1cc4 100644
--- a/utils/litemap/src/map.rs
+++ b/utils/litemap/src/map.rs
@@ -35,6 +35,11 @@ impl<K, V> LiteMap<K, V> {
self.values.len()
}
+ /// Whether the [`LiteMap`] is empty
+ pub fn is_empty(&self) -> bo... | 1 | 5 | 0 |
68d6b2bdcfbf36c7d25848a71009a2159ea3d780 | Zibi Braniecki | 2021-03-04T18:25:02 | Separate Patterns and Symbols trait methods in DateTimeFormat. (#517) | diff --git a/components/datetime/src/format.rs b/components/datetime/src/format.rs
index 19c2017d76..110ed4a62e 100644
--- a/components/datetime/src/format.rs
+++ b/components/datetime/src/format.rs
@@ -8,7 +8,7 @@ use crate::error::DateTimeFormatError as Error;
use crate::fields::{self, FieldLength, FieldSymbol};
us... | 3 | 26 | 16 |
2d622075ee5b17ce15f22c9ef2388ea4df930710 | Shane F. Carr | 2021-03-04T18:22:52 | Include data in icu_testdata crate (#527) | diff --git a/resources/testdata/Cargo.toml b/resources/testdata/Cargo.toml
index 5f82adab66..e08464e952 100644
--- a/resources/testdata/Cargo.toml
+++ b/resources/testdata/Cargo.toml
@@ -13,6 +13,7 @@ license-file = "../../LICENSE"
categories = ["internationalization"]
include = [
"src/**/*",
+ "data/json/**/... | 1 | 1 | 0 |
9b0fa09152aea4de2f8a37628d0bebb9ebb50f3d | Manish Goregaokar | 2021-03-04T18:08:48 | litemap: Serialize to maps, add tests (#516) | diff --git a/Cargo.lock b/Cargo.lock
index c5b24ec06b..6c6f34ba71 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1145,6 +1145,7 @@ name = "litemap"
version = "0.1.1"
dependencies = [
"serde",
+ "serde_json",
]
[[package]]
diff --git a/utils/litemap/Cargo.toml b/utils/litemap/Cargo.toml
index d317a8af14..67dee4bf8... | 4 | 117 | 25 |
40c5dd3205c8fa4beee91a9ac47b18f628a7e550 | Manish Goregaokar | 2021-03-04T17:33:16 | Update tinytemplate to fix nightly breakage (#529) | diff --git a/Cargo.lock b/Cargo.lock
index 3d0c2bf33e..c5b24ec06b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2179,9 +2179,9 @@ checksum = "b975dd2af5824896acaeebf7336471fcafebfa417da0a290ded5509f297ccedb"
[[package]]
name = "tinytemplate"
-version = "1.1.0"
+version = "1.2.1"
source = "registry+https://github.co... | 1 | 2 | 2 |
b15c0b36901095406a67e3620a3d1d0e294b7692 | Dan Minor | 2021-03-02T12:03:43 | Make LanguageIdentifier a field of Locale (#492)
Make LanguageIdentifier a field of Locale.
Fixes #447 | diff --git a/components/datetime/benches/datetime.rs b/components/datetime/benches/datetime.rs
index f86d7a9c69..7fe5eb41d3 100644
--- a/components/datetime/benches/datetime.rs
+++ b/components/datetime/benches/datetime.rs
@@ -8,6 +8,7 @@ use std::fmt::Write;
use icu_datetime::mock::MockDateTime;
use icu_datetime::... | 13 | 158 | 160 |
64c143f402a3c2956f4aa172e903e1e159598b6d | Konstantin Pozin | 2021-03-02T06:17:01 | Fix date pattern parsing for non-ASCII literals (#503) (#515)
Fixes #503 | diff --git a/components/datetime/src/fields/symbols.rs b/components/datetime/src/fields/symbols.rs
index cbf070fad9..55189c8856 100644
--- a/components/datetime/src/fields/symbols.rs
+++ b/components/datetime/src/fields/symbols.rs
@@ -5,7 +5,10 @@ use std::convert::TryFrom;
#[derive(Debug)]
pub enum SymbolError {
+... | 2 | 17 | 1 |
3f9e74b767a215c490007361b23f9c45cf2d1b82 | Manish Goregaokar | 2021-03-02T00:24:22 | Add serde to litemap (#514) | diff --git a/Cargo.lock b/Cargo.lock
index 873c56022e..a8b1d6f2c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1077,7 +1077,10 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
[[package]]
name = "litemap"
-version = "0.1.0"
+version = "0.1.1"
+dependencies = [
+ "serde",
+]
[[pack... | 3 | 36 | 2 |
d1e746357f79f9fcf2a63e50db15f365ab9b063b | Zibi Braniecki | 2021-02-25T23:34:57 | Switch locid::subtags::Language to be TinyStr4 (#506)
* Switch locid::subtags::Language to be TinyStr4
* Apply reviewers feedback
* Fix cargo fmt linter error | diff --git a/components/locid/src/subtags/language.rs b/components/locid/src/subtags/language.rs
index fa9b1047f2..cd7847fa61 100644
--- a/components/locid/src/subtags/language.rs
+++ b/components/locid/src/subtags/language.rs
@@ -1,12 +1,11 @@
// This file is part of ICU4X. For terms of use, please see the file
// c... | 2 | 25 | 22 |
324d9edd2def40e0d000646748172cce370d92db | Shane F. Carr | 2021-02-12T17:40:51 | Re-write DateTimeType trait with DateTimeInput (#445) | diff --git a/Cargo.lock b/Cargo.lock
index 093a61f421..8ca6e8355c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -818,6 +818,7 @@ dependencies = [
"icu_testdata",
"serde",
"serde_json",
+ "tinystr",
"writeable",
]
diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml
index 97e84dcb7c..f17... | 14 | 713 | 256 |
ad895a860fc83a7617a0ab604d19ac36d1380915 | Shane F. Carr | 2021-02-08T23:19:38 | Change DateTimeFormat constructor to take Locale instead of LangID (#475) | diff --git a/components/datetime/examples/work_log.rs b/components/datetime/examples/work_log.rs
index 08f3552e5f..0731a504c7 100644
--- a/components/datetime/examples/work_log.rs
+++ b/components/datetime/examples/work_log.rs
@@ -38,7 +38,7 @@ fn print(_input: &str, _value: Option<usize>) {
fn main(_argc: isize, _arg... | 6 | 40 | 37 |
e9416c3fa5100f11a621f9c8bd498a7dd3a986db | Manish Goregaokar | 2021-02-02T06:08:40 | Fix clippy warnings (#473) | diff --git a/experimental/bies/src/lib.rs b/experimental/bies/src/lib.rs
index d038fe6380..9d22109bb8 100644
--- a/experimental/bies/src/lib.rs
+++ b/experimental/bies/src/lib.rs
@@ -70,6 +70,7 @@ impl Breakpoints {
}
}
+ #[allow(clippy::suspicious_operation_groupings)]
fn from_bies_matrix_1a(
... | 2 | 4 | 3 |
b9696b7c0ee7e922e027b96f5363184bbc79b8d1 | Shane F. Carr | 2021-01-27T21:18:12 | Change CLDR tag to 38.1.0 (#465) | diff --git a/components/provider_cldr/src/download/cldr_allinone.rs b/components/provider_cldr/src/download/cldr_allinone.rs
index 5e1b3a163d..90e5e7d0d9 100644
--- a/components/provider_cldr/src/download/cldr_allinone.rs
+++ b/components/provider_cldr/src/download/cldr_allinone.rs
@@ -27,7 +27,7 @@ use std::path::Path... | 2 | 2 | 2 |
30da77444dfe80f41e7226bb9054e87b8fe43196 | Dan Minor | 2021-01-25T18:09:37 | Fix BIES build (#462)
This updates the BIES code to work against Writeable 0.2.0. | diff --git a/experimental/bies/Cargo.toml b/experimental/bies/Cargo.toml
index c444d4641f..b40698e2bc 100644
--- a/experimental/bies/Cargo.toml
+++ b/experimental/bies/Cargo.toml
@@ -23,7 +23,7 @@ include = [
itertools = "0.9"
num-traits = "0.2"
partial-min-max = "0.4"
-writeable = { version = "0.1", path = "../../u... | 2 | 5 | 5 |
d9347aa4ec3d55df1102a19eb1c438beb1fdd54d | Shane F. Carr | 2021-01-16T06:25:06 | Adding const tests for Locale und (#458) | diff --git a/components/locid/src/langid.rs b/components/locid/src/langid.rs
index ce915a0574..b3a7e08cc9 100644
--- a/components/locid/src/langid.rs
+++ b/components/locid/src/langid.rs
@@ -110,8 +110,9 @@ impl LanguageIdentifier {
/// ```
/// use icu_locid::LanguageIdentifier;
///
- /// assert_eq!(L... | 3 | 9 | 6 |
f526638516e522312213c9e437a44ecf2101fe6d | Shane F. Carr | 2021-01-16T02:53:02 | Implementing const Locale::und() and LanguageIdentifier::und() (#450) | diff --git a/components/locid/src/extensions/mod.rs b/components/locid/src/extensions/mod.rs
index c13d59bf0f..7b4861d6f4 100644
--- a/components/locid/src/extensions/mod.rs
+++ b/components/locid/src/extensions/mod.rs
@@ -78,7 +78,7 @@ impl ExtensionType {
}
}
-/// A map of extensions associated with a given `... | 14 | 252 | 41 |
3a359966df24a4cac457f24f4ef1e6a22d42756e | Zibi Braniecki | 2021-01-15T18:29:37 | Fix clippy warnings (#452)
* Fix clippy warnings
* Additional fix
* Revert the additional change, since ExporterOptions are non exhaustive | diff --git a/components/ecma402/src/pluralrules.rs b/components/ecma402/src/pluralrules.rs
index a8e1256448..b8b701f984 100644
--- a/components/ecma402/src/pluralrules.rs
+++ b/components/ecma402/src/pluralrules.rs
@@ -156,7 +156,7 @@ pub(crate) mod internal {
n: f64,
opts: Options,
... | 2 | 12 | 10 |
20dd293f708382695be8d730d7492400bf50520f | Greg Tatum | 2021-01-14T06:10:10 | Make the DateTime bags more explicit (#429)
* Make the DateTime bags more explicit
I found myself confused on the usage of the bags and the difference
between them and the options provided to the date time. I felt that it
was better to be explicit in the examples, rather than giving more
terse, but potentially m... | diff --git a/components/datetime/src/lib.rs b/components/datetime/src/lib.rs
index 50578d8c82..6ee5b4d239 100644
--- a/components/datetime/src/lib.rs
+++ b/components/datetime/src/lib.rs
@@ -13,17 +13,18 @@
//!
//! ```
//! use icu_locid_macros::langid;
-//! use icu_datetime::{DateTimeFormat, date::MockDateTime, opti... | 3 | 58 | 6 |
d0ee68bf679bd5bb49cb1514025fcec0428ff618 | Erik Nordin | 2021-01-08T01:54:58 | Add support for trailing commas in symbos! and symbols_from! macros (#437)
- Adds support for trailing commas for the `symbols!()` macro.
- Adds support for trailing commas in the `symbols!_from()` macro.
- Changes some zero-or-more matches to one-or-more matches.
- Updates multi-line invocations of these macros to... | diff --git a/components/provider/src/structs/dates.rs b/components/provider/src/structs/dates.rs
index 343ee327eb..a3d26116d4 100644
--- a/components/provider/src/structs/dates.rs
+++ b/components/provider/src/structs/dates.rs
@@ -46,7 +46,7 @@ pub mod gregory {
symbols!();
}
};
-... | 2 | 12 | 12 |
03ae8315ff1ccb4dfcb3336bf436066176d2cd7c | Dan Minor | 2021-01-04T22:52:08 | Use parsing iterator for Locale PartialEq<str> (#402)
* Fix display of transform fields
Without these changes, fields after the first are not separated by
`-`, so `en-US-t-h0-hybrid-k0-platform-s0-true` is displayed as
`en-US-t-h0-hybridk0-platforms0-`.
* Use parsing iterator for Locale PartialEq<str>
This... | diff --git a/components/locid/src/extensions/transform/fields.rs b/components/locid/src/extensions/transform/fields.rs
index 4d7b0738ad..ccf1d6fd59 100644
--- a/components/locid/src/extensions/transform/fields.rs
+++ b/components/locid/src/extensions/transform/fields.rs
@@ -140,6 +140,9 @@ impl Fields {
impl std::fm... | 3 | 61 | 3 |
3f1e984e849558b20d561606237c19375c060d59 | Erik Nordin | 2021-01-04T22:51:24 | Otpimize parsing Language::from_bytes() (#432)
Changes the `Language::from_bytes()` function to return
an Err if the length does not match before creating a
TinyStr and checking `is_ascii_alphabetic()`.
This is a small optimization, but the change is congruent
with `Region::from_bytes()` and `Script::from_bytes(... | diff --git a/components/locid/src/subtags/language.rs b/components/locid/src/subtags/language.rs
index f2bbea688c..57f414e8e3 100644
--- a/components/locid/src/subtags/language.rs
+++ b/components/locid/src/subtags/language.rs
@@ -56,8 +56,13 @@ impl Language {
pub fn from_bytes(v: &[u8]) -> Result<Self, ParserErr... | 1 | 6 | 1 |
05490a5c8606d6e3cb69fd443682843ad7cb3303 | Greg Tatum | 2020-12-23T03:11:05 | Fix link warnings for the docs (#425)
These link warnings were generated while running cargo doc on the root
of the project. | diff --git a/components/datetime/src/date.rs b/components/datetime/src/date.rs
index a6eea502dc..18b8548b0d 100644
--- a/components/datetime/src/date.rs
+++ b/components/datetime/src/date.rs
@@ -33,7 +33,7 @@ impl From<std::num::ParseIntError> for DateTimeError {
/// This type represents all data that the formatted ne... | 4 | 5 | 5 |
fd2728764d5561f1e130546eb969b3811a226de5 | Zibi Braniecki | 2020-11-20T18:25:17 | Switch to use Rust intra-doc (#400) | diff --git a/components/datetime/src/date.rs b/components/datetime/src/date.rs
index 688fe0ad42..a6eea502dc 100644
--- a/components/datetime/src/date.rs
+++ b/components/datetime/src/date.rs
@@ -35,7 +35,7 @@ impl From<std::num::ParseIntError> for DateTimeError {
/// *Note*: At the moment we support only `gregorian` c... | 41 | 127 | 199 |
73f1d954dc2316e425014a4c68b0339f34ef9d47 | Dan Minor | 2020-11-10T18:46:03 | Use parsing iterator for LanguageIdentifier PartialEq (#386)
* Use parsing iterator for LanguageIdentifier PartialEq
* Address review feedback | diff --git a/components/locid/src/extensions/transform/value.rs b/components/locid/src/extensions/transform/value.rs
index d8afeb666f..f56a3ae467 100644
--- a/components/locid/src/extensions/transform/value.rs
+++ b/components/locid/src/extensions/transform/value.rs
@@ -1,7 +1,7 @@
// This file is part of ICU4X. For t... | 7 | 58 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.