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
7eda44fdb2cef111dc0b1c4abaa769fbc974b7d9
Robert Bastian
2021-12-22T17:22:07
Fuzz testing integer Writeable (#1421)
diff --git a/Cargo.lock b/Cargo.lock index 7c3364f7b3..9964e199ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3011,6 +3011,7 @@ version = "0.2.1" dependencies = [ "criterion", "icu_benchmark_macros", + "rand", ] [[package]] diff --git a/utils/writeable/Cargo.toml b/utils/writeable/Cargo.toml index 7bb431268f....
3
81
69
5cfbb17701d725fe739afb5164c9a75d565674eb
Robert Bastian
2021-12-22T17:13:12
Rewriting ListFormatter to only use appends (#1395)
diff --git a/experimental/list_formatter/src/list_formatter.rs b/experimental/list_formatter/src/list_formatter.rs index 7ac5fdcf62..5457af4329 100644 --- a/experimental/list_formatter/src/list_formatter.rs +++ b/experimental/list_formatter/src/list_formatter.rs @@ -49,36 +49,67 @@ impl ListFormatter { fn format_i...
3
144
82
f4fee4264c86ea324e6cf5202632ca8838d6803b
Makoto Kato
2021-12-22T00:32:46
Add build scripts in Cargo.toml for cargo vendor. (#1424)
diff --git a/experimental/segmenter/Cargo.toml b/experimental/segmenter/Cargo.toml index 4a568be5f5..73b640757a 100644 --- a/experimental/segmenter/Cargo.toml +++ b/experimental/segmenter/Cargo.toml @@ -14,10 +14,12 @@ license-file = "LICENSE" categories = ["internationalization"] # Keep this in sync with other crate...
1
2
0
9e7e21843237dade01c42947fa3e4166a911fcb1
Shane F. Carr
2021-12-21T20:17:25
Move BorrowedVariant to ZeroVecLike (#1429)
diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs index b0f67c4b94..b45f0c0a82 100644 --- a/utils/zerovec/src/map/borrowed.rs +++ b/utils/zerovec/src/map/borrowed.rs @@ -41,10 +41,8 @@ where K: ?Sized, V: ?Sized, { - pub(crate) keys: - <<K as ZeroMapKV<'a>>::Contain...
2
96
72
0a44cebda56a170654ed009c5d934d4c16d41299
Shane F. Carr
2021-12-21T17:42:54
Make icu_segmenter be no_std with lstm feature disabled (#1425)
diff --git a/experimental/segmenter/Cargo.toml b/experimental/segmenter/Cargo.toml index 8f196eeddc..4a568be5f5 100644 --- a/experimental/segmenter/Cargo.toml +++ b/experimental/segmenter/Cargo.toml @@ -23,10 +23,13 @@ include = [ "README.md" ] +[package.metadata.cargo-all-features] +skip_optional_dependencies ...
8
65
13
7769518dc099f1763061aa3be3df86bacffd9cbb
Makoto Kato
2021-12-21T04:50:44
Add missing license block in segmenter. (#1420)
diff --git a/experimental/segmenter/src/grapheme.rs b/experimental/segmenter/src/grapheme.rs index 8ea99f8516..cb604e8b4d 100644 --- a/experimental/segmenter/src/grapheme.rs +++ b/experimental/segmenter/src/grapheme.rs @@ -1,3 +1,7 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICE...
3
12
0
e96204ea6b758acc25b7cad2cbbac5ec705c265b
Robert Bastian
2021-12-20T21:12:52
Implementing Writeable for all integers (#1408)
diff --git a/utils/writeable/src/impls.rs b/utils/writeable/src/impls.rs index 89d9439daa..e1faaf7426 100644 --- a/utils/writeable/src/impls.rs +++ b/utils/writeable/src/impls.rs @@ -8,84 +8,103 @@ use core::convert::TryFrom; use core::fmt; use core::str; -impl Writeable for u8 { - fn write_to<W: fmt::Write + ?S...
1
87
68
66b20815ed4126800da5183a293e16bbcf634618
Manish Goregaokar
2021-12-20T20:24:57
Refactor VZV code to center on (and Deref to) VarZeroSlice; make VZVBorrowed private (#1418)
diff --git a/components/plurals/src/rules/runtime/ast.rs b/components/plurals/src/rules/runtime/ast.rs index a663c581c7..2ebc416977 100644 --- a/components/plurals/src/rules/runtime/ast.rs +++ b/components/plurals/src/rules/runtime/ast.rs @@ -456,7 +456,7 @@ mod serde { let string: String = self.to_str...
10
282
398
988f2464b6a40aa72cfe04acc59fe3c98928f088
Shane F. Carr
2021-12-20T01:58:41
Construct VZVs and use as_encoded_bytes instead of the static function (#1411) * Start migrating clients away from get_serializable_bytes * fmt * Rename functions involving VZV bytes * Update docs * More fixes * update bench Co-authored-by: Manish Goregaokar <manishsmail@gmail.com>
diff --git a/components/plurals/src/rules/runtime/ast.rs b/components/plurals/src/rules/runtime/ast.rs index 57b507d0ae..a663c581c7 100644 --- a/components/plurals/src/rules/runtime/ast.rs +++ b/components/plurals/src/rules/runtime/ast.rs @@ -456,7 +456,7 @@ mod serde { let string: String = self.to_str...
8
85
70
355487a0e0e42493d55373a569f7651791c8cc50
Shane F. Carr
2021-12-19T17:50:56
Change DataRequest to be borrowed in BufferProvider (#1416)
diff --git a/provider/blob/src/blob_data_provider.rs b/provider/blob/src/blob_data_provider.rs index d39c5665d0..2b42556a69 100644 --- a/provider/blob/src/blob_data_provider.rs +++ b/provider/blob/src/blob_data_provider.rs @@ -109,8 +109,8 @@ where } impl BufferProvider for BlobDataProvider { - fn load_buffer(&s...
5
8
9
8328551082ea99dda9e32a16ce126991830e81a8
Manish Goregaokar
2021-12-19T08:35:01
Add precompute benches for VZV, prefix all ZeroVecLike methods with `zvl_` (#1412) * Add benches for precomputing * prefix all ZeroVecLike methods with `zvl_`
diff --git a/utils/zerovec/benches/vzv.rs b/utils/zerovec/benches/vzv.rs index b654117edd..a983bb3fab 100644 --- a/utils/zerovec/benches/vzv.rs +++ b/utils/zerovec/benches/vzv.rs @@ -60,6 +60,7 @@ fn overview_bench(c: &mut Criterion) { { char_count_benches(c); binary_search_benches(c); + v...
5
185
121
55aeb880fc1e2dd86717227b0e7b918d2e444ec4
Shane F. Carr
2021-12-19T08:09:40
Rename PlainOldULE to RawBytesULE (#1413)
diff --git a/components/plurals/src/rules/runtime/ast.rs b/components/plurals/src/rules/runtime/ast.rs index 7b6c959134..57b507d0ae 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::{self, *}; use num_enum::...
8
43
43
a6799976ee0ba76708393f13efd3466f198bed57
Shane F. Carr
2021-12-19T08:09:31
Fail gracefully when building provider_fs on alternate platforms (#1414)
diff --git a/provider/fs/src/export/aliasing.rs b/provider/fs/src/export/aliasing.rs index 50378ba4aa..c07f4c00ac 100644 --- a/provider/fs/src/export/aliasing.rs +++ b/provider/fs/src/export/aliasing.rs @@ -16,6 +16,14 @@ use std::os::unix::fs::symlink as symlink_file; #[cfg(target_family = "windows")] use std::os::w...
1
8
0
3f2a96a06472d61e6c7d2f6e688fb2a9a64e14fd
Shane F. Carr
2021-12-16T23:05:42
Fix EncodeAsVarULE for ZeroVec (#1407)
diff --git a/utils/zerovec/src/ule/custom/encode.rs b/utils/zerovec/src/ule/custom/encode.rs index b8d8798fc1..8de03de39a 100644 --- a/utils/zerovec/src/ule/custom/encode.rs +++ b/utils/zerovec/src/ule/custom/encode.rs @@ -117,10 +117,9 @@ where } } -unsafe impl<'a, T, A: AsULE<ULE = T> + 'static> custom::Encod...
1
2
3
5217972b3d7eb583317aaef4455bd2f9cd8d91aa
Elango
2021-12-15T22:12:06
Remove workaround for rustc bug after upstream fix (#1402)
diff --git a/utils/codepointtrie/src/lib.rs b/utils/codepointtrie/src/lib.rs index d0fcfe2ae0..4db301617f 100644 --- a/utils/codepointtrie/src/lib.rs +++ b/utils/codepointtrie/src/lib.rs @@ -35,10 +35,6 @@ extern crate alloc; -// Workaround for https://github.com/rust-lang/rust/issues/87932 -#[cfg(feature = "serde...
2
0
8
5c7c7fd7acebd6826d681e85dde3e8cbf6e04ca7
Greg Tatum
2021-12-15T14:45:20
Add a resolve_components method to DateTimeFormat (#1362) This is required for feature compatibility with ECMA-402. The backing DateTimeFormat implementation needs to be able to return the resolved components from the given options. These resolved components can differ based on locale or the resolution algorithm.
diff --git a/components/datetime/src/datetime.rs b/components/datetime/src/datetime.rs index adc07c51cd..a4be0f02e2 100644 --- a/components/datetime/src/datetime.rs +++ b/components/datetime/src/datetime.rs @@ -6,7 +6,7 @@ //! Central to this is the [`DateTimeFormat`]. use crate::{ - options::DateTimeFormatOptio...
4
341
2
f3db25335e27591a3b1d83d1fd0325bc4403958b
Robert Bastian
2021-12-15T09:21:30
Making ListFormatterPattern construction more private (#1398)
diff --git a/experimental/list_formatter/src/provider.rs b/experimental/list_formatter/src/provider.rs index c95763a096..322a1f6bc4 100644 --- a/experimental/list_formatter/src/provider.rs +++ b/experimental/list_formatter/src/provider.rs @@ -44,20 +44,46 @@ pub struct ListFormatterPatternsV1<'data>( impl<'data> ListF...
2
109
102
bea61e5d70f41baf52ebe710f57fbe7bab77ccc9
Elango
2021-12-14T21:19:55
Rename enums for General_Category (#1355)
diff --git a/components/properties/src/error.rs b/components/properties/src/error.rs index d8f06a792c..8003f7bc65 100644 --- a/components/properties/src/error.rs +++ b/components/properties/src/error.rs @@ -16,9 +16,9 @@ pub enum PropertiesError { /// An unknown value was used for the [`Script`] property #[di...
8
244
186
472900ff5fa1078ed12fa9f2497f1055f4982164
Robert Bastian
2021-12-14T19:58:13
Adding size hints to ListFormatter buffer initialization (#1390)
diff --git a/experimental/formatted_string/src/formatted_string.rs b/experimental/formatted_string/src/formatted_string.rs index 51880c25c3..4a7a6aa431 100644 --- a/experimental/formatted_string/src/formatted_string.rs +++ b/experimental/formatted_string/src/formatted_string.rs @@ -21,7 +21,7 @@ pub trait FormattedStri...
3
165
70
6fac854351da0d609a955603b81853b63a12100f
Manish Goregaokar
2021-12-14T15:47:07
constrain zcf on T: 'static (#1392)
diff --git a/utils/yoke/src/zero_copy_from.rs b/utils/yoke/src/zero_copy_from.rs index a5f30d6969..23d08ceba9 100644 --- a/utils/yoke/src/zero_copy_from.rs +++ b/utils/yoke/src/zero_copy_from.rs @@ -241,7 +241,7 @@ impl ZeroCopyFrom<&'_ str> for &'static str { } } -impl<T> ZeroCopyFrom<[T]> for &'static [T] { +...
1
1
1
7ae1e6df3178f839840e313b0065dcd1915a151c
Manish Goregaokar
2021-12-14T05:05:07
Simplify ZeroVec/VarZeroVec error handling, consolidate ULEError type (#1389) * Replace all ZeroVec errors with ULEError * Use ULEError for VarZeroVec * Use new ULE impl everywhere
diff --git a/components/datetime/src/fields/ule.rs b/components/datetime/src/fields/ule.rs index cc4bba8a4b..d8e4aed984 100644 --- a/components/datetime/src/fields/ule.rs +++ b/components/datetime/src/fields/ule.rs @@ -3,7 +3,7 @@ // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). use crate::f...
20
159
219
65fef9e14457d6c744f8dca11fcf22461837c838
Manish Goregaokar
2021-12-14T01:50:31
calendars: fix offset handling around month boundaries (#1352) * calendars: fix offset handling around month boundaries * fmt * clippy
diff --git a/components/calendar/src/iso.rs b/components/calendar/src/iso.rs index 18e859791d..d12203dccf 100644 --- a/components/calendar/src/iso.rs +++ b/components/calendar/src/iso.rs @@ -215,7 +215,9 @@ impl Calendar for Iso { } } else { let month_days = self.days_in_m...
1
36
1
7e1d77e59e3145175d1267905eef35eefecc34b7
Erik Nordin
2021-12-12T00:45:39
Fix typo in Yokeable documentation (#1386)
diff --git a/utils/yoke/derive/src/lib.rs b/utils/yoke/derive/src/lib.rs index 7663fbde60..a8dd59af86 100644 --- a/utils/yoke/derive/src/lib.rs +++ b/utils/yoke/derive/src/lib.rs @@ -22,7 +22,7 @@ mod visitor; /// /// ```rust,ignore /// #[derive(Yokeable)] -/// #[yoke(manually_prove_covariance)] +/// #[yoke(prove_co...
1
1
1
61620c52818565dfec760a93f1435f80590f1c3a
Shane F. Carr
2021-12-11T23:18:04
Change break_iterator_impl macro to use a helper trait (#1380)
diff --git a/experimental/segmenter/src/lib.rs b/experimental/segmenter/src/lib.rs index bd394cd660..3fa5656ffa 100644 --- a/experimental/segmenter/src/lib.rs +++ b/experimental/segmenter/src/lib.rs @@ -2,7 +2,8 @@ // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-o...
2
264
210
3418070e32c024f8f6ce4316d18090507c7a5400
Manish Goregaokar
2021-12-08T04:32:02
Add ZeroVecULE, make VarULE impl of `[T: ULE]` work on reflexive ULEs (#1357)
diff --git a/utils/zerovec/src/lib.rs b/utils/zerovec/src/lib.rs index a02acb1926..2b49deeab7 100644 --- a/utils/zerovec/src/lib.rs +++ b/utils/zerovec/src/lib.rs @@ -102,7 +102,7 @@ pub mod map; pub mod samples; pub mod ule; pub mod varzerovec; -mod zerovec; +pub mod zerovec; #[cfg(feature = "yoke")] mod yoke_i...
11
304
69
fd5eb4b373b48870b7ffd4dd19946fdcc46e2cd9
Manish Goregaokar
2021-11-30T01:39:44
Remove attach_to_option_cart() (#1348)
diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs index 8a25d6fb56..aadec8cd9a 100644 --- a/provider/core/src/data_provider.rs +++ b/provider/core/src/data_provider.rs @@ -225,7 +225,7 @@ where rc_buffer: Rc<[u8]>, f: impl for<'de> FnOnce(&'de [u8]) -> Result<<M::Yok...
2
2
47
b42c3594c9c109816ba59f3f7a0a948ebf53f6ad
Shane F. Carr
2021-11-24T19:07:58
ZeroVec::clone_from_slice --> ZeroVec::alloc_from_slice (#1343)
diff --git a/components/datetime/src/pattern/runtime/generic.rs b/components/datetime/src/pattern/runtime/generic.rs index 9b4e258e72..4c4cc0fa9e 100644 --- a/components/datetime/src/pattern/runtime/generic.rs +++ b/components/datetime/src/pattern/runtime/generic.rs @@ -72,7 +72,7 @@ impl<'data> GenericPattern<'data> {...
10
24
24
92dbabdbf4f81f55492d65dcfde9a003aaa9de24
Shane F. Carr
2021-11-24T19:07:48
Remove DataPayloadInner and migrate to a single Yoke type (#1342)
diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs index c571cdf4a3..8a25d6fb56 100644 --- a/provider/core/src/data_provider.rs +++ b/provider/core/src/data_provider.rs @@ -95,14 +95,6 @@ pub struct DataResponseMetadata { pub data_langid: Option<LanguageIdentifier>, } -pub(crat...
5
78
141
d7e2d1bbfe836885979d6ad7e2cdd22d3b91edda
Shane F. Carr
2021-11-24T19:07:03
Add extend_from_litemap to LiteMap (#1340)
diff --git a/utils/litemap/src/map.rs b/utils/litemap/src/map.rs index 9e7c2381ba..d9ad6f723f 100644 --- a/utils/litemap/src/map.rs +++ b/utils/litemap/src/map.rs @@ -141,6 +141,42 @@ impl<K: Ord, V> LiteMap<K, V> { } } + /// Get the lowest-rank key/value pair from the `LiteMap`, if it exists. + /...
1
168
1
ca2dd56cc13ad6c18d66d7b2f4df989acc5a71c5
Manish Goregaokar
2021-11-22T20:31:57
Bump zerovec to 0.5 (#1336)
diff --git a/Cargo.lock b/Cargo.lock index 3320eed67c..859450e7da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3033,7 +3033,7 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.4.1" +version = "0.5.0" dependencies = [ "bincode", "criterion", diff --git a/components/datetime/Cargo.toml b/components/...
10
10
10
08f539e48bac34b218a27df29ef18dc62ede132e
Manish Goregaokar
2021-11-22T19:38:21
Allow cloning_zcf to be applied to individual variants or fields (#1307) * Move has_cloning_zcf_attr to function * Extend cloning_zcf to work on fields as well * Add test * fmt
diff --git a/utils/yoke/derive/examples/derive.rs b/utils/yoke/derive/examples/derive.rs index aeb52cbd6a..f4a7fff009 100644 --- a/utils/yoke/derive/examples/derive.rs +++ b/utils/yoke/derive/examples/derive.rs @@ -81,6 +81,39 @@ pub fn assert_zcf_map<'a, 'b>( ZeroMapGenericExample::<'static, str>::zero_copy_from(...
2
78
30
1c5901fa24fd17605e0534a1c2bcee89d84807e3
Manish Goregaokar
2021-11-20T00:52:23
Simplify ZeroMapKV (#1334)
diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs index 681e69589a..7be693579a 100644 --- a/utils/zerovec/src/map/borrowed.rs +++ b/utils/zerovec/src/map/borrowed.rs @@ -145,7 +145,7 @@ where /// // still exists after the ZeroMapBorrowed has been dropped /// assert_eq!(borrow,...
5
88
120
9258d0505eab7165723c6e052c51e26f085cd1fa
Manish Goregaokar
2021-11-19T23:14:31
Add PartialEq, Debug, Clone impls to ZeroMap (#1332) * Add PartialEq, Debug, Clone impls to ZeroMap * fmt * Add ?Sized bounds
diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs index 814a048058..681e69589a 100644 --- a/utils/zerovec/src/map/borrowed.rs +++ b/utils/zerovec/src/map/borrowed.rs @@ -5,6 +5,8 @@ use crate::ule::AsULE; use crate::ZeroVec; +use core::fmt; + pub use super::kv::ZeroMapKV; pub use ...
2
88
8
c78b611172290d7ab729a985f48879b2f724b63e
Shane F. Carr
2021-11-19T20:12:57
Add Default impls for all zerovec types (#1330)
diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs index 1956f9a4f8..814a048058 100644 --- a/utils/zerovec/src/map/borrowed.rs +++ b/utils/zerovec/src/map/borrowed.rs @@ -68,6 +68,18 @@ where } } +impl<'a, K, V> Default for ZeroMapBorrowed<'a, K, V> +where + K: ZeroMapKV<'a>, ...
6
129
33
a96c0aa8873370bbba80fb0f041f65945ab30d37
Shane F. Carr
2021-11-19T19:11:54
Add missing Serde/Yoke impls to ZeroVec crate (#1328)
diff --git a/utils/zerovec/Cargo.toml b/utils/zerovec/Cargo.toml index 6470a08fb6..ca7ae0744e 100644 --- a/utils/zerovec/Cargo.toml +++ b/utils/zerovec/Cargo.toml @@ -24,7 +24,7 @@ include = [ all-features = true [dependencies] -serde = { version = "1.0", optional = true , default-features = false, features = ["all...
6
228
31
f2a5bf5e9dcad52e072e23e3770d5c7decf67a64
Manish Goregaokar
2021-11-17T22:09:09
Homogenize yoke generic impls to always work with Yokeable, add OwnedYokeable (#1302)
diff --git a/utils/yoke/src/macro_impls.rs b/utils/yoke/src/macro_impls.rs index 67b25c4644..7aaf39e6c4 100644 --- a/utils/yoke/src/macro_impls.rs +++ b/utils/yoke/src/macro_impls.rs @@ -57,16 +57,6 @@ impl_copy_type!(i128); impl_copy_type!(char); impl_copy_type!(bool); -unsafe impl<'a, T: Copy + 'static, const N: ...
1
39
10
1c296f0cce90c50742d4f820dfa298b06d04f0c3
Manish Goregaokar
2021-11-17T21:25:18
Add Buddhist calendar calculations (#1305) * Add Buddhist calendar calculations * move into const * Remove intermediate layer of inner date
diff --git a/components/calendar/src/buddhist.rs b/components/calendar/src/buddhist.rs new file mode 100644 index 0000000000..93d8e74069 --- /dev/null +++ b/components/calendar/src/buddhist.rs @@ -0,0 +1,135 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICENSE at the top level of ...
2
136
0
a0a65962002a56f610a9f171f0aee6ed0caeead7
Manish Goregaokar
2021-11-17T19:58:32
Handle serialization of tuples (etc) in litemaps (#1306) * Move serde code into separate file * Add serde_json to litemap, split into serde_serialize and serde features * Handle tuple serialization in LiteMap * fmt * appease clippy * appease clippy * fix dep
diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml index 2357b3e9b3..19f28aea9e 100644 --- a/components/datetime/Cargo.toml +++ b/components/datetime/Cargo.toml @@ -66,7 +66,7 @@ bench = false # This option is required for Benchmark CI std = ["icu_provider/std", "icu_locid/std", "icu_calenda...
7
200
86
cee2b5fa9dc7649e78b29e5e2d67e3e7c33764e3
Manish Goregaokar
2021-11-15T23:26:37
Remove RcStruct (#1299) * Use owned data structs in SerdeSeDataStruct * Move ErasedCart to Yoke * Remove DataPayload::from_partial_owned() * Remove RcStruct
diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs index 3ad1423e4a..c571cdf4a3 100644 --- a/provider/core/src/data_provider.rs +++ b/provider/core/src/data_provider.rs @@ -95,26 +95,10 @@ pub struct DataResponseMetadata { pub data_langid: Option<LanguageIdentifier>, } -/// Dum...
9
195
215
33d441cc9fdfdb5c86ba21f28eb50753bbe6e6a1
Shane F. Carr
2021-11-13T01:15:25
Fix item 5 in the VarULE checklist (#1295)
diff --git a/utils/zerovec/src/ule/mod.rs b/utils/zerovec/src/ule/mod.rs index e3dca81801..5d611345a0 100644 --- a/utils/zerovec/src/ule/mod.rs +++ b/utils/zerovec/src/ule/mod.rs @@ -241,8 +241,8 @@ where /// would not represent a valid slice of this type. /// 4. The impl of [`VarULE::validate_byte_slice()`] *must...
1
2
2
89508d93bb5421beaf9a3d09793c0944743cb046
Manish Goregaokar
2021-11-12T16:03:17
Document ULE alignment guarantee; update all impls with checklists (#1294)
diff --git a/components/datetime/src/fields/ule.rs b/components/datetime/src/fields/ule.rs index 4118589485..cc4bba8a4b 100644 --- a/components/datetime/src/fields/ule.rs +++ b/components/datetime/src/fields/ule.rs @@ -61,10 +61,14 @@ impl AsULE for fields::Field { } // Safety (based on the safety checklist on the ...
11
123
35
fe24e7b9309bb87eb43c3bfde7c74412c818a059
Manish Goregaokar
2021-11-10T23:54:13
Impl Debug/PartialEq on PairULE (#1287)
diff --git a/utils/zerovec/src/ule/pair.rs b/utils/zerovec/src/ule/pair.rs index 11e0c3770a..f60ea1a381 100644 --- a/utils/zerovec/src/ule/pair.rs +++ b/utils/zerovec/src/ule/pair.rs @@ -66,6 +66,24 @@ impl<E: fmt::Display, F: fmt::Display> fmt::Display for PairULEError<E, F> { } } +impl<A: fmt::Debug + ULE, B:...
1
18
0
1ed57813d760147f20cea0084de736790561b730
Shane F. Carr
2021-11-10T22:00:17
Fixes for icu4x-datagen for Unicode properties (#1285)
diff --git a/Cargo.lock b/Cargo.lock index 6bdcd37177..f3772c1187 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1359,6 +1359,7 @@ dependencies = [ "icu_provider", "icu_testdata", "icu_uniset", + "log", "serde", "tinystr", "toml", diff --git a/provider/uprops/Cargo.toml b/provider/uprops/Cargo.toml index db0e...
5
43
15
c6857ec1508b0fd74e6d15e20a76220bad211067
Manish Goregaokar
2021-11-10T21:14:00
Burn DataMarker::Cart down with fire (#1279) * Add Yoke::replace_cart() * Use ErasedCart * Replace M::Cart with ErasedCart in RcStruct * Remove Cart type from DataMarker * Remove 'data from DataMarker
diff --git a/components/datetime/src/provider/gregory/mod.rs b/components/datetime/src/provider/gregory/mod.rs index d4d41558f1..94e1590bbf 100644 --- a/components/datetime/src/provider/gregory/mod.rs +++ b/components/datetime/src/provider/gregory/mod.rs @@ -118,8 +118,7 @@ pub mod patterns { /// `DataPayload<Patt...
23
175
142
0fe7189471f3889ede366fcc9979ff311ed84d45
Manish Goregaokar
2021-11-10T19:23:19
Move ErasedDataStruct to the owned variant of DataPayload (#1278)
diff --git a/provider/core/src/erased.rs b/provider/core/src/erased.rs index 96c1872c72..619a4fc429 100644 --- a/provider/core/src/erased.rs +++ b/provider/core/src/erased.rs @@ -66,25 +66,28 @@ impl ZeroCopyFrom<dyn ErasedDataStruct> for &'static dyn ErasedDataStruct { pub struct ErasedDataStructMarker {} impl Dat...
2
53
46
8a99635bf98b44c4cb57e7a2db491c9a88d3d4ad
Manish Goregaokar
2021-11-10T19:23:07
Add double-to-decimal for FixedDecimal via ryū (#1217) * Add ryu and new_from_f32/new_from_f64 to FixedDecimal * Add C++ test for ryu APIs * fmt * Remove f32 methods * Add rounding routine * Add DoublePrecision * Add DoublePrecision::Magnitude * fixes * fix * fix * fix * Fix bounds ...
diff --git a/Cargo.lock b/Cargo.lock index 98c49d9912..6bdcd37177 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -638,6 +638,7 @@ dependencies = [ "rand", "rand_distr", "rand_pcg", + "ryu", "smallvec", "static_assertions", "writeable", diff --git a/utils/fixed_decimal/Cargo.toml b/utils/fixed_decimal/Cargo.tom...
4
521
6
615570cc88f9012e78b2bb79900006b9747f0259
Manish Goregaokar
2021-11-09T20:06:53
Add borrowed-only version of ZeroMap (#1238)
diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs new file mode 100644 index 0000000000..1956f9a4f8 --- /dev/null +++ b/utils/zerovec/src/map/borrowed.rs @@ -0,0 +1,220 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICENSE at the top level of the IC...
5
514
37
c88c6fe1a714c872d7ea1893417fbe4ac72bd58c
Manish Goregaokar
2021-11-09T17:06:27
Add EncodeAsVarULE for ZeroVec (#1274)
diff --git a/utils/zerovec/src/ule/custom/encode.rs b/utils/zerovec/src/ule/custom/encode.rs index 8b1439c6c3..84096ce06b 100644 --- a/utils/zerovec/src/ule/custom/encode.rs +++ b/utils/zerovec/src/ule/custom/encode.rs @@ -3,6 +3,7 @@ // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). use crat...
1
20
0
74e74a3bd7e7b00073d4c73d2efa1fcfcc81579d
Manish Goregaokar
2021-11-05T17:12:36
Handle exponents in FixedDecimal::from_str() (#1265) * Handle exponents in FixedDecimal::from_str() * Clean up leftmost/rightmost digit calculation * use filter()/collect() * clippy
diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs index e83f0de278..347de6997e 100644 --- a/utils/fixed_decimal/src/decimal.rs +++ b/utils/fixed_decimal/src/decimal.rs @@ -532,34 +532,62 @@ impl FromStr for FixedDecimal { // Compute length of each string once and store it, so...
1
128
47
899d8cdd35064b75767d70c845c477cf3e13b849
Manish Goregaokar
2021-11-05T16:57:10
Fix PairULE validation function (#1266) * Fix PairULE validate function * Add pairule validation test * satisfy clippy
diff --git a/utils/zerovec/src/ule/pair.rs b/utils/zerovec/src/ule/pair.rs index 4872c9f718..11e0c3770a 100644 --- a/utils/zerovec/src/ule/pair.rs +++ b/utils/zerovec/src/ule/pair.rs @@ -17,11 +17,13 @@ unsafe impl<A: ULE, B: ULE> ULE for PairULE<A, B> { fn validate_byte_slice(bytes: &[u8]) -> Result<(), Self::Err...
1
19
7
11288c3272483b12a01e6e021187a728c4854491
Younies Mahmoud
2021-11-05T08:21:28
add pad and padded to FixedDecimal (#1195) * add pad and padded to FixedDecimal * Make it pad or trunc@ * Fix edge cases and add more tests * add an extensive tests and fix the case which the number is an empty string. Co-authored-by: younies <younies>
diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs index f2a40ccfa7..e83f0de278 100644 --- a/utils/fixed_decimal/src/decimal.rs +++ b/utils/fixed_decimal/src/decimal.rs @@ -340,6 +340,77 @@ impl FixedDecimal { self } + /// Add or remove digits from the left side of t...
1
125
0
04b902b0e81a6964035a3fbcc796bd0207b11e11
Ting-Yu Lin
2021-11-05T05:34:54
Reorder LineBreakRule's enum values (#1263) Make their ordering the same as in the spec https://drafts.csswg.org/css-text-3/#line-break-property
diff --git a/experimental/segmenter/src/line_breaker.rs b/experimental/segmenter/src/line_breaker.rs index 45f7e3a450..5408191861 100644 --- a/experimental/segmenter/src/line_breaker.rs +++ b/experimental/segmenter/src/line_breaker.rs @@ -23,6 +23,11 @@ use unicode_width::UnicodeWidthChar; /// <https://drafts.csswg.or...
1
5
5
dc5ff31e24e1203d719701cb179b3a6f3df3eac0
Shane Carr
2021-11-02T00:12:05
Add missing dependency version numbers
diff --git a/provider/blob/Cargo.toml b/provider/blob/Cargo.toml index a25aaddddb..ffacb8e7e6 100644 --- a/provider/blob/Cargo.toml +++ b/provider/blob/Cargo.toml @@ -33,7 +33,7 @@ serde = { version = "1.0", default-features = false, features = ["alloc"] } postcard = { version = "0.7.0", default-features = false } er...
1
1
1
1b4dd6279b683a248658fd6b9876f8d2ac9e16ef
Shane F. Carr
2021-11-01T23:59:18
Update version numbers for ICU4X 0.4 (#1252)
diff --git a/Cargo.lock b/Cargo.lock index defc4821bf..2b93e9f69d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -986,7 +986,7 @@ checksum = "71a816c97c42258aa5834d07590b718b4c9a598944cd39a52dc25b351185d678" [[package]] name = "icu" -version = "0.3.0" +version = "0.4.0" dependencies = [ "fixed_decimal", "icu_cale...
28
129
129
e8b38536c46afca5d9e04dbdfb07b51c9384fccf
Manish Goregaokar
2021-11-01T23:25:02
Bump yoke-derive in preparation for release (#1253) * Bump yoke-derive to 0.1.2 * Bump yoke to 0.3.1 * Update users of yoke and yoke-derive
diff --git a/Cargo.lock b/Cargo.lock index 6d74e7b66f..defc4821bf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3008,7 +3008,7 @@ dependencies = [ [[package]] name = "yoke" -version = "0.3.0" +version = "0.3.1" dependencies = [ "bincode", "serde", @@ -3018,7 +3018,7 @@ dependencies = [ [[package]] name = "y...
9
12
12
6975267434af46fc4ec70fc7c7459a2bc74c2699
Manish Goregaokar
2021-11-01T22:47:18
Update utils in preparation for release (#1249) * Bump writeable to 0.2.1 * Update dependency on writeable * Bump yoke version to 0.3.0 * Update dependency on yoke * Bump zerovec version to 0.4.1 * Bump icu_pattern to 0.1.1 * Bump CPT to 0.3.0 * Update dependency on CPT * Bump uniset to 0.4.0 ...
diff --git a/Cargo.lock b/Cargo.lock index a62fb41cca..6d74e7b66f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1082,7 +1082,7 @@ dependencies = [ [[package]] name = "icu_codepointtrie" -version = "0.2.0" +version = "0.3.0" dependencies = [ "displaydoc", "postcard", @@ -1203,7 +1203,7 @@ dependencies = [ [[p...
21
35
35
e71aa54a2ed3300ee745ecca6d355af6a90955d3
Shane F. Carr
2021-11-01T19:46:13
Speed up icu4x-datagen by pre-loading data in icu_provider_uprops (#1244)
diff --git a/Cargo.lock b/Cargo.lock index bcf9e57873..a62fb41cca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -623,6 +623,16 @@ dependencies = [ "serde", ] +[[package]] +name = "eyre" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "221239d1d5ea86bf5d6f91c9d6bc3646f...
9
165
68
6fba6e5ecdf959b41a679dab0a2eb76583b5013f
Zibi Braniecki
2021-10-29T01:41:44
Remove missing docs config flag from ICU crate. (#1242)
diff --git a/components/icu/src/lib.rs b/components/icu/src/lib.rs index 495166de96..25c46e751a 100644 --- a/components/icu/src/lib.rs +++ b/components/icu/src/lib.rs @@ -83,7 +83,6 @@ //! [`Locale`]: crate::locid::Locale //! [`SymbolsV1`]: crate::decimal::provider::DecimalSymbolsV1 -#![warn(missing_docs)] #![cfg_...
1
0
2
40dff703ca88306047c47d1187a8a6880e8c4b58
Zibi Braniecki
2021-10-28T23:29:17
Switch examples to use static provider to better measure memory impact. (#1241)
diff --git a/components/datetime/examples/work_log.rs b/components/datetime/examples/work_log.rs index a54a224ff8..5864788df7 100644 --- a/components/datetime/examples/work_log.rs +++ b/components/datetime/examples/work_log.rs @@ -43,7 +43,7 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize { let locale...
7
7
7
0e5084a8f41ae28fbfc1c27c5a080fab6e62b22e
Manish Goregaokar
2021-10-28T19:45:47
Properly fold lifetimes in zcf/yoke custom derives (#1231) * Properly fold lifetimes in zcf/yoke custom derives * fix test * fmt
diff --git a/utils/yoke/derive/Cargo.toml b/utils/yoke/derive/Cargo.toml index eb9b33a2b5..d44edb3af3 100644 --- a/utils/yoke/derive/Cargo.toml +++ b/utils/yoke/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", features = ["deri...
3
16
40
9aaf98424fed0a14f37ce6f8962229967eb0a77a
Manish Goregaokar
2021-10-28T18:19:02
Add manual clone impl for VZV (#1230)
diff --git a/utils/zerovec/src/varzerovec/mod.rs b/utils/zerovec/src/varzerovec/mod.rs index 436638e20e..95453a5268 100644 --- a/utils/zerovec/src/varzerovec/mod.rs +++ b/utils/zerovec/src/varzerovec/mod.rs @@ -105,7 +105,6 @@ pub use ule::VarZeroVecULE; /// for more information. /// /// [`ule`]: crate::ule -#[deriv...
2
18
2
3a63e2d49c1d8c7700289bd60bfe4145a559af41
Manish Goregaokar
2021-10-28T00:48:58
Make VarZeroVecBorrowed/VarZeroVecOwned public (#1223) * SliceComponents -> VZVBorrowed * get_components() -> as_borrowed() * Remove duplicate method * make compile again * components -> borrowed * Add docs, make VZVBorrowed public * more docs * more docs etc * Make VZVOwned public * Fixup doc warnings and fm...
diff --git a/utils/zerovec/src/map/mod.rs b/utils/zerovec/src/map/mod.rs index 03b867f18c..f32b7ffffd 100644 --- a/utils/zerovec/src/map/mod.rs +++ b/utils/zerovec/src/map/mod.rs @@ -110,7 +110,7 @@ where /// Reserve capacity for `additional` more elements to be inserted into /// the [`ZeroMap`] to avoid freq...
8
179
128
b362fd7878841f27a375083dc880103b84a1bd1d
Elango
2021-10-26T14:42:00
Add enumerated property APIs returning DataPayload of CodePointTrie (#1197)
diff --git a/Cargo.lock b/Cargo.lock index a6e2e5ca52..d65ea88963 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1218,6 +1218,7 @@ dependencies = [ name = "icu_properties" version = "0.3.0" dependencies = [ + "displaydoc", "icu", "icu_codepointtrie", "icu_provider", @@ -1384,12 +1385,12 @@ dependencies = [ "cr...
10
159
73
3920ad263ca5d63d1cc206bde3266cf5e013318c
Manish Goregaokar
2021-10-25T18:59:29
Add more methods to EncodeAsVarULE (#1199)
diff --git a/utils/zerovec/src/ule/custom/encode.rs b/utils/zerovec/src/ule/custom/encode.rs index 0bf67d383c..aaaf459ec7 100644 --- a/utils/zerovec/src/ule/custom/encode.rs +++ b/utils/zerovec/src/ule/custom/encode.rs @@ -10,55 +10,97 @@ use alloc::vec::Vec; /// Allows types to be encoded as VarULEs. This is highly u...
4
67
42
8aa98be2e3cb650a89d36361ebd516cb9e973b57
Manish Goregaokar
2021-10-21T16:10:36
Fix clippy warnings in yoke (#1200)
diff --git a/utils/yoke/src/is_covariant.rs b/utils/yoke/src/is_covariant.rs index f4407a6845..3b3f0b4297 100644 --- a/utils/yoke/src/is_covariant.rs +++ b/utils/yoke/src/is_covariant.rs @@ -19,7 +19,7 @@ use alloc::{ /// /// `IsCovariant` is auto-implemented in [`#[derive(Yokeable)]`](yoke_derive::Yokeable). /// -/...
3
8
2
2611e3a833eda73f77fdf394c5a932e6821f236c
Manish Goregaokar
2021-10-20T20:22:39
Bump ZeroVec to 0.4 (#1194)
diff --git a/Cargo.lock b/Cargo.lock index 87160c9cc9..7f2f593e26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2999,7 +2999,7 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.3.0" +version = "0.4.0" dependencies = [ "bincode", "criterion", diff --git a/components/datetime/Cargo.toml b/components/...
7
8
8
81aaa42a07cc1a9342dbdeb8014012f96e542acc
Manish Goregaokar
2021-10-20T19:57:06
Make ULE types Copy, add PairULE (#1193) * Add PairULE * Make ULE Copy * take AsULE values by-copy
diff --git a/components/datetime/src/fields/ule.rs b/components/datetime/src/fields/ule.rs index 064e432ac1..4118589485 100644 --- a/components/datetime/src/fields/ule.rs +++ b/components/datetime/src/fields/ule.rs @@ -47,12 +47,12 @@ impl AsULE for fields::Field { type ULE = FieldULE; #[inline] - fn as_...
17
187
93
82ea03a765305fdf75af1974ba7251562c81a499
Manish Goregaokar
2021-10-20T14:18:12
Basic impl of EncodeAsVarULE (#1173)
diff --git a/utils/zerovec/src/ule/custom/encode.rs b/utils/zerovec/src/ule/custom/encode.rs new file mode 100644 index 0000000000..0bf67d383c --- /dev/null +++ b/utils/zerovec/src/ule/custom/encode.rs @@ -0,0 +1,64 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICENSE at the top l...
6
218
28
dddfb63ad54ad7fc32fea8e728e487415d955caa
Shane F. Carr
2021-10-19T07:49:42
Add small comment to ZeroVec::from_iter (#1185)
diff --git a/utils/zerovec/src/zerovec/mod.rs b/utils/zerovec/src/zerovec/mod.rs index ead4ad3dc1..9ab0bc2a67 100644 --- a/utils/zerovec/src/zerovec/mod.rs +++ b/utils/zerovec/src/zerovec/mod.rs @@ -560,6 +560,7 @@ where } impl<T: AsULE> FromIterator<T> for ZeroVec<'_, T> { + /// Creates a [`ZeroVec::Owned`] fro...
1
2
0
8a016a0398676d1d7316cab83667a92983f903f7
Makoto Kato
2021-10-19T04:05:29
Cleanup linebreak segmenter specification test to use other segmenters (#1168) * Cleanup specification test for linebreak since other specification tests will use same test format. UAX#29 test data uses same format for UAX#14. So I would like to clean up it to use other tests for UAX#29. * Fix per review commen...
diff --git a/experimental/segmenter/tests/spec_test.rs b/experimental/segmenter/tests/spec_test.rs index aaf19c1b30..10f623ed77 100644 --- a/experimental/segmenter/tests/spec_test.rs +++ b/experimental/segmenter/tests/spec_test.rs @@ -11,91 +11,123 @@ use std::io::prelude::*; use std::io::BufReader; use std::u32; -...
1
102
70
1579874c154691fb2232fdd13ef178f833f313d6
Manish Goregaokar
2021-10-18T22:44:27
Document ZeroVec's variants (#1182) * Add ZeroVec::borrowed_from_slice() * move docs to borrowed * review comment * Update utils/zerovec/src/zerovec/mod.rs Co-authored-by: Shane F. Carr <shane@unicode.org> * Update utils/zerovec/src/zerovec/mod.rs Co-authored-by: Shane F. Carr <shane@unicode.org> ...
diff --git a/utils/zerovec/src/zerovec/mod.rs b/utils/zerovec/src/zerovec/mod.rs index b5d3951722..ead4ad3dc1 100644 --- a/utils/zerovec/src/zerovec/mod.rs +++ b/utils/zerovec/src/zerovec/mod.rs @@ -60,7 +60,31 @@ pub enum ZeroVec<'a, T> where T: AsULE + ?Sized, { + /// An owned `ZeroVec<T>`. This will typica...
1
24
0
a430f66c32040c3ac1e055620ee3f5c6515ab1e8
iainireland
2021-10-18T21:43:18
Adds UnicodePropertyMapV1 data struct for enumerated properties (#1161) * Rename TrieTypeEnum to TrieType TrieType no longer exists, so we don't need an awkward name for TrieTypeEnum. * Implement Yokeable/ZeroCopyFrom for CodePointTrie and data struct * Cargo fmt + minor fixes * Rebase on yoke-generics ...
diff --git a/Cargo.lock b/Cargo.lock index 5ad1307f44..7175bbd456 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1072,6 +1072,7 @@ dependencies = [ name = "icu_codepointtrie" version = "0.2.0" dependencies = [ + "icu_provider", "postcard", "serde", "thiserror", diff --git a/utils/codepointtrie/Cargo.toml b/utils...
8
116
69
9c8afa504fed91f346a256ab216079663208c6bb
Makoto Kato
2021-10-12T23:45:17
Move Latin1Indices and Utf16Indices to its own file (#1165) * Move *Indices to own file to use other segmenter. * Fix per review comment. * Add comment for surrogate pair.
diff --git a/experimental/segmenter/src/indices.rs b/experimental/segmenter/src/indices.rs new file mode 100644 index 0000000000..efe0660d63 --- /dev/null +++ b/experimental/segmenter/src/indices.rs @@ -0,0 +1,120 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICENSE at the top lev...
3
128
74
651f113cdcf85f620b56793f6b5c8b5c865a9a53
iainireland
2021-10-12T22:02:45
Add doc comments to icu_uniset (#1154) * Add doc comments to icu_uniset * More detailed doc comments for UnicodeSetError
diff --git a/components/uniset/src/enum_props.rs b/components/uniset/src/enum_props.rs index 07511890ee..42ed9a15bd 100644 --- a/components/uniset/src/enum_props.rs +++ b/components/uniset/src/enum_props.rs @@ -10,11 +10,13 @@ use num_enum::{TryFromPrimitive, UnsafeFromPrimitive}; /// These constants are used to selec...
4
209
21
a3ef861aa8531297b04b93104b8e774e0ed0d1f5
Manish Goregaokar
2021-10-12T20:06:11
Add FromIterator impl for ZeroVec (#1169) * Add FromIterator impl for ZeroVec * fmt
diff --git a/utils/zerovec/src/zerovec/mod.rs b/utils/zerovec/src/zerovec/mod.rs index 769469d627..b5d3951722 100644 --- a/utils/zerovec/src/zerovec/mod.rs +++ b/utils/zerovec/src/zerovec/mod.rs @@ -8,6 +8,7 @@ mod serde; use crate::ule::*; use alloc::vec::Vec; use core::fmt; +use core::iter::FromIterator; /// A ...
1
9
0
f0332973d5b685ce81b1172b1cf9dd2d121994f5
Manish Goregaokar
2021-10-08T17:51:10
Add support for generics in derive(Yokeable, ZeroCopyFrom) (#1162) * Add ability to use generics with derive(Yokeable) for non-lifetime types * Start testing ZeroCopyFrom on types without lifetime parameters * Add ability to use derive(ZCF) for non-lifetime types with generics * Support generics for non-manually-pr...
diff --git a/utils/yoke/derive/Cargo.toml b/utils/yoke/derive/Cargo.toml index ba4fd6171e..37291e8854 100644 --- a/utils/yoke/derive/Cargo.toml +++ b/utils/yoke/derive/Cargo.toml @@ -26,5 +26,5 @@ syn = { version = "1.0.73", features = ["derive"] } synstructure = "0.12.4" [dev-dependencies] -yoke = { path = "..", v...
4
258
34
9dfd3d5a50eb6cf6cc557959b6a9ab57bd41d6dd
Zibi Braniecki
2021-10-08T16:17:06
Add humanized serde serialization to DTF runtime pattern (#1157) * Add humanized serde serialization to DTF runtime pattern * Switch to use ZeroVec serialize/deserialize for binary path * Use helper struct * Put serde into module
diff --git a/components/datetime/src/pattern/reference/pattern.rs b/components/datetime/src/pattern/reference/pattern.rs index 12affb8225..fc07447a74 100644 --- a/components/datetime/src/pattern/reference/pattern.rs +++ b/components/datetime/src/pattern/reference/pattern.rs @@ -155,7 +155,7 @@ impl fmt::Display for Pat...
2
109
9
5da378032b6a98225436c476938744a6156da8b8
Zibi Braniecki
2021-10-04T22:59:31
Make clippy happy
diff --git a/components/datetime/src/provider/date_time.rs b/components/datetime/src/provider/date_time.rs index 7e468c3ca9..93bd61fc0c 100644 --- a/components/datetime/src/provider/date_time.rs +++ b/components/datetime/src/provider/date_time.rs @@ -8,9 +8,7 @@ use crate::fields; use crate::options::{components, leng...
2
42
16
e6582015d32d370e5a673c61dbb46aed727bf194
Manish Goregaokar
2021-10-04T20:29:27
Add UleError type; use for PlainOldULE and char conversions (#1147)
diff --git a/utils/zerovec/Cargo.toml b/utils/zerovec/Cargo.toml index c9c7318ad8..c491cd23e3 100644 --- a/utils/zerovec/Cargo.toml +++ b/utils/zerovec/Cargo.toml @@ -42,6 +42,7 @@ getrandom = { version = "0.2", features = ["js"] } [features] bench = [] +std = [] [[bench]] name = "zerovec" diff --git a/utils/ze...
7
55
7
2528fe16843a31c74f91e30d20bffefc64a1d01f
Shane F. Carr
2021-10-04T04:06:58
Check for lengths in ULE and revise safety docs (#1121)
diff --git a/utils/zerovec/src/ule/mod.rs b/utils/zerovec/src/ule/mod.rs index aa74f31a75..4ab41b77d7 100644 --- a/utils/zerovec/src/ule/mod.rs +++ b/utils/zerovec/src/ule/mod.rs @@ -17,30 +17,36 @@ use core::{fmt, mem, slice}; /// Fixed-width, byte-aligned data that can be cast to and from a little-endian byte slic...
2
117
108
7ab53189bd43c03a9baf57a532b7fe714c97a26b
Zibi Braniecki
2021-10-04T01:28:10
Add runtime GenericPattern to DTF. (#1120) * Add runtime GenericPattern to DTF. * Apply reviewers feedback * Apply reviewers feedback * Fix comment * Make PatternULE repr transparent
diff --git a/components/datetime/src/pattern/item/ule.rs b/components/datetime/src/pattern/item/ule.rs index ffb3dd23e1..25ecfdc022 100644 --- a/components/datetime/src/pattern/item/ule.rs +++ b/components/datetime/src/pattern/item/ule.rs @@ -2,7 +2,7 @@ // called LICENSE at the top level of the ICU4X source tree // ...
7
328
9
2d64d81d4661090c0d446b7bd700e65035840a5e
Shane F. Carr
2021-10-03T05:29:22
Update tracking bug for removal of YokeTraitHack (#1134)
diff --git a/utils/yoke/src/trait_hack.rs b/utils/yoke/src/trait_hack.rs index 97161035ca..c3e498c745 100644 --- a/utils/yoke/src/trait_hack.rs +++ b/utils/yoke/src/trait_hack.rs @@ -6,7 +6,7 @@ //! //! # Trait bounds in Yoke //! -//! [Compiler bug #85636](https://github.com/rust-lang/rust/issues/85636) makes it tri...
1
70
23
f7f0bc43874d7d0b24f44011498f83ef55c1d0ce
Shane F. Carr
2021-10-03T05:28:14
Add try_map_project_[cloned]_with_capture (#1135)
diff --git a/provider/core/src/data_provider.rs b/provider/core/src/data_provider.rs index 26b949060a..183e01234d 100644 --- a/provider/core/src/data_provider.rs +++ b/provider/core/src/data_provider.rs @@ -485,10 +485,7 @@ where /// /// Map from `HelloWorldV1` to a `Cow<str>` containing just the message: ...
1
172
8
e6245c2001931f22c60fd889f9523e6830597d1e
Alyssa Haroldsen
2021-10-02T07:48:26
Implement and consolidate VarZeroVec mutation operations (#1127) * Implement and consolidate VarZeroVec mutation operations This consolidates all bit-shifting mutation operations into a single function, since there's significant shared logic. Fixes #1080. Co-authored-by: Manish Goregaokar <manishsmail@gmail....
diff --git a/utils/zerovec/src/map/vecs.rs b/utils/zerovec/src/map/vecs.rs index 20577eabde..c70cef81bd 100644 --- a/utils/zerovec/src/map/vecs.rs +++ b/utils/zerovec/src/map/vecs.rs @@ -113,11 +113,16 @@ where self.make_mut().insert(index, &value) } fn remove(&mut self, index: usize) -> T { - ...
2
414
139
bb2f1e279675e374233d260112cb2f12125d2a05
Manish Goregaokar
2021-10-01T22:32:21
Set default datagen log level to INFO (#1138) * Update SimpleLogger * Set default datagen log level to INFO
diff --git a/Cargo.lock b/Cargo.lock index 26aa3ed136..335d621fad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2334,9 +2334,9 @@ dependencies = [ [[package]] name = "simple_logger" -version = "1.11.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd57f17c093ead1d...
4
13
5
e5067da312ef0cd0b31894e82239be70a91f5602
Zibi Braniecki
2021-10-01T17:18:36
Clean up DTF Skeleton. (#1132) * Clean up DTF Skeleton. * Fix fmt * Fix clippy * Fix regression in prefer_matched_pattern
diff --git a/components/datetime/src/pattern/hour_cycle.rs b/components/datetime/src/pattern/hour_cycle.rs index 22309ecd9d..beb1d91e62 100644 --- a/components/datetime/src/pattern/hour_cycle.rs +++ b/components/datetime/src/pattern/hour_cycle.rs @@ -3,7 +3,7 @@ // (online at: https://github.com/unicode-org/icu4x/blob...
4
72
123
209ddc7aaf9c78c646da3add611dfabc6f82c1d8
Zibi Braniecki
2021-10-01T17:13:11
Start splitting gregory provider data (#1137) * Start splitting gregory provider data * Fix imports from symbols for provider
diff --git a/components/datetime/src/provider/gregory.rs b/components/datetime/src/provider/gregory/mod.rs similarity index 53% rename from components/datetime/src/provider/gregory.rs rename to components/datetime/src/provider/gregory/mod.rs index a697c4ab96..ac114b3ada 100644 --- a/components/datetime/src/provider/gre...
3
127
116
4aaac96425b8a9de9f4566c1c2d2453f5654d5ba
iainireland
2021-10-01T16:51:24
Update property enums to support CodepointTrie (#1089) * Make GC exhaustive GeneralCategory will never be extended See https://www.unicode.org/policies/stability_policy.html * Add GeneralSubcategory to represent raw GC data * Implement AsULE for GeneralSubcategory * Cargo fmt * refactor * Make GC re...
diff --git a/Cargo.lock b/Cargo.lock index 1d9eb11344..26aa3ed136 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1349,6 +1349,7 @@ dependencies = [ "icu_benchmark_macros", "icu_provider", "litemap", + "num_enum", "postcard", "serde", "serde_json", diff --git a/components/uniset/Cargo.toml b/components/uniset/...
6
364
226
20100345fc28379015107c7b4aa8b3d088bd41c8
Shane F. Carr
2021-09-30T23:41:01
Move Display bound on ULE::Error for Serde (#1130)
diff --git a/utils/zerovec/src/ule/mod.rs b/utils/zerovec/src/ule/mod.rs index 8b260d4914..aa74f31a75 100644 --- a/utils/zerovec/src/ule/mod.rs +++ b/utils/zerovec/src/ule/mod.rs @@ -13,7 +13,7 @@ mod vec; pub use chars::CharULE; pub use plain::PlainOldULE; -use core::{mem, slice}; +use core::{fmt, mem, slice}; ...
3
3
7
47f667eae48d6b8a446a36e1cae01b8eccf66881
Manish Goregaokar
2021-09-30T21:24:14
Add ZeroVec::iter_mut() (#1128) * Add ZeroVec::iter_mut() * Add ZeroVec::for_each_mut() * Expose make_mut, remove iter_mut, expose try_for_each_mut * Update utils/zerovec/src/zerovec/mod.rs Co-authored-by: Shane F. Carr <shane@unicode.org> * apply suggestion * make_mut -> to_mut * fix Co-author...
diff --git a/utils/zerovec/src/map/vecs.rs b/utils/zerovec/src/map/vecs.rs index 5d62c4d597..20577eabde 100644 --- a/utils/zerovec/src/map/vecs.rs +++ b/utils/zerovec/src/map/vecs.rs @@ -62,17 +62,17 @@ where self.get_ule_ref(index) } fn insert(&mut self, index: usize, value: T) { - self.make_...
2
72
13
848f20957de134138ff1a27d341105140df7d702
iainireland
2021-09-29T23:17:33
Remove name field from UnicodePropertyV1 (#1125) Co-authored-by: Iain Ireland <iain.i.ireland@gmail.com>
diff --git a/components/uniset/src/provider.rs b/components/uniset/src/provider.rs index aa4201a2cb..aa8dc4f90f 100644 --- a/components/uniset/src/provider.rs +++ b/components/uniset/src/provider.rs @@ -8,7 +8,6 @@ use crate::builder::UnicodeSetBuilder; use crate::uniset::UnicodeSet; -use alloc::borrow::Cow; use i...
3
5
19
30a5f4ad1417d5c1bd2189d139ac09b8726644f2
Zibi Braniecki
2021-09-29T04:16:55
Introduce DTF runtime Pattern backed by ZV (#1112) * Introduce DTF runtime Pattern backed by ZV * Apply reviewers feedback * Make num_enum work with no_std * Apply reviewers feedback * Append final feedback
diff --git a/Cargo.lock b/Cargo.lock index a26ff30f5e..3a54db8447 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -480,6 +480,17 @@ dependencies = [ "memchr", ] +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d81...
14
484
50
e7cbcdbd7fe129c8cfc41d374eb262767004dded
Zibi Braniecki
2021-09-28T00:06:34
Separate out validation function for ULE to be able to derive parse_byte_slice (#1113) * Separate out validation function for ULE to be able to derive parse_byte_slice * Apply reviewers feedback * Add same for VarULE and document default impl for parse_byte_slice * Improve docs
diff --git a/utils/zerovec/src/ule/chars.rs b/utils/zerovec/src/ule/chars.rs index 38b38d3a67..4043c974ec 100644 --- a/utils/zerovec/src/ule/chars.rs +++ b/utils/zerovec/src/ule/chars.rs @@ -45,15 +45,14 @@ unsafe impl ULE for CharULE { type Error = core::char::CharTryFromError; #[inline] - fn parse_byte...
6
58
13
31497db60513ba6f34b6acf68c30ac0b710d8d55
Manish Goregaokar
2021-09-27T21:22:44
Use/require byte equality in VarZeroVec (#1103) * Add equality and same-slice invariants to ULE traits * Add assert for same-slice invariant in VarZeroVec * use equality guarantee in vzv partialeq impl * Don't construct the SliceComponents for get_encoded_slice() * review fixes * Add default impls of as...
diff --git a/utils/zerovec/src/ule/chars.rs b/utils/zerovec/src/ule/chars.rs index c938f79a9e..38b38d3a67 100644 --- a/utils/zerovec/src/ule/chars.rs +++ b/utils/zerovec/src/ule/chars.rs @@ -55,21 +55,6 @@ unsafe impl ULE for CharULE { // Safe because Self is transparent over [u8; 4] and has been validated ...
7
86
48
47cea1b4b494bd723a63328fd09e3b72378cd785
iainireland
2021-09-26T05:44:50
Disable default features for postcard (#1096) Co-authored-by: Iain Ireland <iain.i.ireland@gmail.com>
diff --git a/provider/blob/Cargo.toml b/provider/blob/Cargo.toml index 36bd42554e..e9081a53c5 100644 --- a/provider/blob/Cargo.toml +++ b/provider/blob/Cargo.toml @@ -30,7 +30,7 @@ all-features = true icu_provider = { version = "0.3", path = "../../provider/core", features = ["provider_serde"] } icu_locid = { version...
1
1
1
3dd207490113fc19549732cc56f0d2a5ccdc5c36
Zibi Braniecki
2021-09-24T23:29:25
Introduce GenericPattern (#1101)
diff --git a/components/datetime/src/pattern/generic.rs b/components/datetime/src/pattern/generic.rs new file mode 100644 index 0000000000..3dfbc5c7c8 --- /dev/null +++ b/components/datetime/src/pattern/generic.rs @@ -0,0 +1,57 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICENSE ...
3
129
12
6dfdac6ae98bdd2d96d83c13f423a42c7f307b93
Zibi Braniecki
2021-09-24T01:40:36
Switch DTF field symbols to use macros. (#1093) * Switch DTF field symbols to use macros. * Revert Minute changes
diff --git a/components/datetime/src/fields/macros.rs b/components/datetime/src/fields/macros.rs new file mode 100644 index 0000000000..4e42815261 --- /dev/null +++ b/components/datetime/src/fields/macros.rs @@ -0,0 +1,102 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICENSE at th...
4
190
342
d821987ada3f86d2fbba8777c81184ba3fe71aa6
Manish Goregaokar
2021-09-23T21:36:42
Move zerovec to no_std (#1094) Make zerovec no_std
diff --git a/utils/zerovec/src/lib.rs b/utils/zerovec/src/lib.rs index e1a0320f7d..508aba2c83 100644 --- a/utils/zerovec/src/lib.rs +++ b/utils/zerovec/src/lib.rs @@ -79,10 +79,13 @@ //! # } // feature = "serde" //! ``` +#![cfg_attr(not(test), no_std)] // this crate does a lot of nuanced lifetime manipulation, bei...
16
44
27
0719bef4e5e77ebc0dfe5f8cade17707baa81f7e
Shane F. Carr
2021-09-14T19:20:55
Add provider_json and provider_bincode features (#1049) - Migrates manifest to serde-json-core - Renames bincode to provider_bincode - Fails early when syntax is not supported
diff --git a/Cargo.lock b/Cargo.lock index 4414c8534b..504f6f3e24 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1258,6 +1258,7 @@ dependencies = [ "icu_provider", "log", "serde", + "serde-json-core", "serde_json", "static_assertions", ] @@ -2239,6 +2240,17 @@ dependencies = [ "serde_json", ] +[[package]]...
11
88
32
54d3b85100eb10aaed26f5f40e44a4cca5996f1b
Erik Nordin
2021-09-13T23:27:52
Derive Yokeable for ZeroMap (#1046) * WIP: Asking Questions * Make it work * Clean up comments * Update documentation Co-authored-by: Manish Goregaokar <manishsmail@gmail.com>
diff --git a/utils/yoke/derive/examples/derive.rs b/utils/yoke/derive/examples/derive.rs index 5d4e70276c..6fe1851f0d 100644 --- a/utils/yoke/derive/examples/derive.rs +++ b/utils/yoke/derive/examples/derive.rs @@ -9,12 +9,12 @@ use yoke_derive::{Yokeable, ZeroCopyFrom}; use zerovec::{VarZeroVec, ZeroMap, ZeroVec}; ...
2
79
12