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 |
|---|---|---|---|---|---|---|---|
11db1cdcfb2bb5f1c48b7993719596133702023f | Elango | 2020-11-06T18:39:26 | Remove flaky unit test of fn for remote file download (#378) | diff --git a/components/provider_cldr/src/download/io_util.rs b/components/provider_cldr/src/download/io_util.rs
index 3b86935f44..7407a72939 100644
--- a/components/provider_cldr/src/download/io_util.rs
+++ b/components/provider_cldr/src/download/io_util.rs
@@ -39,7 +39,8 @@ fn download_sync(url: &str, destination: &P... | 1 | 2 | 1 |
dcab5bbd27d2bf8403ee3871a7cdb7db537511cb | Elango | 2020-11-06T18:38:49 | Document the ICU and ICU4X boundary logic for UnicodeSet from a range (#377) | diff --git a/components/uniset/src/uniset.rs b/components/uniset/src/uniset.rs
index 1932b42be0..61d5e40454 100644
--- a/components/uniset/src/uniset.rs
+++ b/components/uniset/src/uniset.rs
@@ -173,6 +173,11 @@ impl UnicodeSet {
/// Surrogate points (`0xD800 -> 0xDFFF`) will return false if the Range contains the... | 1 | 5 | 0 |
d358e47b4dac60c5532ae6fa1aa44fd89f03aae5 | Nebojša Ćirić | 2020-10-25T00:24:44 | Adding an example to locid section. (#367)
* Adding an example to locid section.
* Fix fmt
* Simplify logic and don't overparse.
* Rename function, update comment. | diff --git a/components/locid/Cargo.toml b/components/locid/Cargo.toml
index 5f3ac49203..51f62c0ed9 100644
--- a/components/locid/Cargo.toml
+++ b/components/locid/Cargo.toml
@@ -51,3 +51,7 @@ harness = false
[[example]]
name = "filter_langids"
test = true
+
+[[example]]
+name = "syntatically_canonicalize_locales"
+... | 2 | 54 | 0 |
da3cc7152ec55a8469f09bcdfef78f2fb30a6999 | Shane F. Carr | 2020-10-24T07:35:01 | Replace icu_data_key macro with const DataKeys (#361) | diff --git a/components/datetime/src/lib.rs b/components/datetime/src/lib.rs
index 50598edeba..ecc2e30f7c 100644
--- a/components/datetime/src/lib.rs
+++ b/components/datetime/src/lib.rs
@@ -62,7 +62,8 @@ pub use error::DateTimeFormatError;
use format::write_pattern;
pub use format::FormattedDateTime;
use icu_locid:... | 22 | 116 | 129 |
e2bcc93343a0eca8a4659f6e6fef3bbdf79bc0e9 | Mihai Nita | 2020-10-23T20:52:50 | Fix for issue #357, Latin 1 definition | diff --git a/components/icu/examples/tui.rs b/components/icu/examples/tui.rs
index 1ccd569a1e..4751130c0f 100644
--- a/components/icu/examples/tui.rs
+++ b/components/icu/examples/tui.rs
@@ -48,7 +48,8 @@ fn main() {
{
let mut builder = UnicodeSetBuilder::new();
- builder.add_range(&('\u{0000}'..... | 1 | 2 | 1 |
90f742a5bbad4a3588e37303f5f7cdda10f02c5c | Shane F. Carr | 2020-10-15T14:51:57 | Add reference to #355 from DateTimeType API docs (#356) | diff --git a/components/datetime/src/date.rs b/components/datetime/src/date.rs
index 8873ccb4b2..688fe0ad42 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... | 1 | 1 | 1 |
16345fe929d03167a5e2dd11c6dc13a593ee1e74 | Zibi Braniecki | 2020-10-15T02:56:50 | More clippy cleanups | diff --git a/components/datetime/src/pattern/mod.rs b/components/datetime/src/pattern/mod.rs
index 0c1cbdff06..4fa4654529 100644
--- a/components/datetime/src/pattern/mod.rs
+++ b/components/datetime/src/pattern/mod.rs
@@ -57,11 +57,7 @@ impl Pattern {
}
// TODO(#277): This should be turned into a utility f... | 6 | 42 | 48 |
3aa5b0ea32d019342fddf51f6f07be0704ce57d7 | Zibi Braniecki | 2020-10-14T18:28:20 | API docs for providers | diff --git a/components/datetime/benches/datetime.rs b/components/datetime/benches/datetime.rs
index 22949419bf..8a6efb374b 100644
--- a/components/datetime/benches/datetime.rs
+++ b/components/datetime/benches/datetime.rs
@@ -6,8 +6,8 @@ mod fixtures;
use criterion::{criterion_group, criterion_main, Criterion};
use ... | 11 | 93 | 17 |
4025a90052299ee6fa8f35465611ccf3f63fe9ae | Zibi Braniecki | 2020-10-14T17:50:09 | Hot-fix to benchmark | diff --git a/components/datetime/benches/datetime.rs b/components/datetime/benches/datetime.rs
index 6b6bc65c91..22949419bf 100644
--- a/components/datetime/benches/datetime.rs
+++ b/components/datetime/benches/datetime.rs
@@ -7,7 +7,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
use std::fmt::Write... | 1 | 1 | 1 |
8c81d6dfcf270533c2836b9ecd32a98dc5e8124b | Zibi Braniecki | 2020-10-14T17:36:33 | API doc cleanups for main components | diff --git a/components/datetime/src/date.rs b/components/datetime/src/date.rs
index 15610da828..8873ccb4b2 100644
--- a/components/datetime/src/date.rs
+++ b/components/datetime/src/date.rs
@@ -1,6 +1,7 @@
// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ... | 11 | 284 | 111 |
33ef9644f0cde5f7a44ea2b0de43d19a41750e81 | Zibi Braniecki | 2020-10-14T01:12:55 | Hot-fix for a proc macro | diff --git a/components/locid/macros/src/lib.rs b/components/locid/macros/src/lib.rs
index 298c778bbe..389474e0c7 100644
--- a/components/locid/macros/src/lib.rs
+++ b/components/locid/macros/src/lib.rs
@@ -11,7 +11,7 @@ use token_stream::IntoTokenStream;
fn get_crate_name() -> String {
if let Ok(name) = crate_... | 1 | 1 | 1 |
8725ff5a766fb406619601115d1eaf7816caf9c0 | Zibi Braniecki | 2020-10-14T01:05:20 | Rename icu::locale to icu::locid | diff --git a/components/ecma402/src/lib.rs b/components/ecma402/src/lib.rs
index ee8fab1ba3..b4d647ce5e 100644
--- a/components/ecma402/src/lib.rs
+++ b/components/ecma402/src/lib.rs
@@ -2,7 +2,7 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/ma... | 4 | 7 | 7 |
f8de2adf11e3dd8964bc3b536811f2b0883a5e38 | Zibi Braniecki | 2020-10-13T20:31:35 | Fix fs-data-provider bincode | diff --git a/components/fs-data-provider/tests/test_file_io.rs b/components/fs-data-provider/tests/test_file_io.rs
index 805c85a658..380b9be3b0 100644
--- a/components/fs-data-provider/tests/test_file_io.rs
+++ b/components/fs-data-provider/tests/test_file_io.rs
@@ -41,6 +41,7 @@ fn test_read_json() {
}
#[test]
+#[... | 1 | 1 | 0 |
b0f9de3c1d255650db5c0273c727d9def978b26c | Elango | 2020-10-13T19:50:28 | temporarily disable flaky unit test (#345) | diff --git a/components/cldr-json-data-provider/src/download/io_util.rs b/components/cldr-json-data-provider/src/download/io_util.rs
index 1b5916e770..3b86935f44 100644
--- a/components/cldr-json-data-provider/src/download/io_util.rs
+++ b/components/cldr-json-data-provider/src/download/io_util.rs
@@ -39,7 +39,9 @@ fn ... | 1 | 2 | 0 |
f05a276e1126f330deaa014e298f9771da90696c | Zibi Braniecki | 2020-10-13T19:06:42 | Use langid macros everywhere. (#341) | diff --git a/components/cldr-json-data-provider/Cargo.toml b/components/cldr-json-data-provider/Cargo.toml
index cdc3f4e35f..49d9f53b68 100644
--- a/components/cldr-json-data-provider/Cargo.toml
+++ b/components/cldr-json-data-provider/Cargo.toml
@@ -36,6 +36,7 @@ log = { version = "0.4", optional = true }
[dev-depe... | 27 | 109 | 100 |
0db49de698fa174a86d745ec7f331639f2fefaf3 | Zibi Braniecki | 2020-10-13T18:20:42 | Fix clippy warning | diff --git a/components/locale/macros/src/lib.rs b/components/locale/macros/src/lib.rs
index 686c7aa9c9..f22f656e09 100644
--- a/components/locale/macros/src/lib.rs
+++ b/components/locale/macros/src/lib.rs
@@ -12,12 +12,10 @@ use token_stream::IntoTokenStream;
fn get_crate_name() -> String {
if let Ok(name) = cr... | 1 | 3 | 5 |
dabd9f259ce3f9cddc0407ebbdaa721098d36238 | Zibi Braniecki | 2020-10-13T17:00:42 | Use proc-macro-crate to handle icu vs icu_locale (#338) | diff --git a/components/icu/Cargo.toml b/components/icu/Cargo.toml
index 337a45fb18..6af4d41e1c 100644
--- a/components/icu/Cargo.toml
+++ b/components/icu/Cargo.toml
@@ -20,6 +20,7 @@ include = [
[dependencies]
icu-datetime = { path = "../datetime" }
icu-locale = { path = "../locale" }
+icu-locale-macros = { path =... | 5 | 41 | 9 |
cc50a71267baf23db4b636b2f9fcc147dcc8eb38 | Shane F. Carr | 2020-10-13T16:42:33 | Fix locale macros to remove dependency on TinyStr (#337) | diff --git a/components/locale/macros/src/token_stream.rs b/components/locale/macros/src/token_stream.rs
index 701455edf1..6576b878b6 100644
--- a/components/locale/macros/src/token_stream.rs
+++ b/components/locale/macros/src/token_stream.rs
@@ -2,7 +2,6 @@
// called LICENSE at the top level of the ICU4X source tree
... | 5 | 31 | 35 |
bfa739ff4452a85c7f3d14841ada20418a9474de | Elango | 2020-10-12T16:29:51 | Re-instate config to support CI runs of benchmark tests (#330) | diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml
index f8ac29417e..efad71e057 100644
--- a/components/datetime/Cargo.toml
+++ b/components/datetime/Cargo.toml
@@ -25,6 +25,9 @@ icu-testdata = { path = "../../resources/testdata" }
serde = { version = "1.0", features = ["derive"] }
serde_jso... | 5 | 15 | 0 |
600694ed19f371b6e9a0479a1cf3990668f7ae8d | Zibi Braniecki | 2020-10-11T16:46:21 | Fix clippy warnings. | diff --git a/components/cldr-json-data-provider/src/cldr_langid.rs b/components/cldr-json-data-provider/src/cldr_langid.rs
index 27146be788..91c32c4275 100644
--- a/components/cldr-json-data-provider/src/cldr_langid.rs
+++ b/components/cldr-json-data-provider/src/cldr_langid.rs
@@ -134,7 +134,7 @@ fn test_order() {
... | 3 | 5 | 7 |
e9739af4ab0f78f30188943944d023b182637f7a | Zibi Braniecki | 2020-10-10T23:43:24 | Unify benchmarks behind overview and bench flag (#325) | diff --git a/components/datetime/Cargo.toml b/components/datetime/Cargo.toml
index de3d32122e..f8ac29417e 100644
--- a/components/datetime/Cargo.toml
+++ b/components/datetime/Cargo.toml
@@ -25,6 +25,11 @@ icu-testdata = { path = "../../resources/testdata" }
serde = { version = "1.0", features = ["derive"] }
serde_js... | 16 | 310 | 151 |
fa8e1f40afd7a650a5900615eab8c741a24767a7 | Zibi Braniecki | 2020-10-09T18:51:42 | Add ICU Meta Package for 0.1 (#306)
* Add ICU Meta Package for 0.1
* Move to use shared testdata
* Switch to testdata | diff --git a/components/icu/Cargo.toml b/components/icu/Cargo.toml
index 5fdf0baf08..e258e9f55d 100644
--- a/components/icu/Cargo.toml
+++ b/components/icu/Cargo.toml
@@ -13,3 +13,12 @@ include = [
"Cargo.toml",
"README.md"
]
+
+[dependencies]
+icu-datetime = { path = "../datetime" }
+icu-locale = { path = "... | 3 | 149 | 1 |
8d3c8d5efcb1736f2b91128dc2af472266ed5e7d | Shane F. Carr | 2020-10-09T17:37:47 | Error cleanup: standard pattern for I/O errors and enum naming (#312) | diff --git a/components/cldr-json-data-provider/src/download/cldr_paths_download.rs b/components/cldr-json-data-provider/src/download/cldr_paths_download.rs
index bd501a2198..ef7079f7f1 100644
--- a/components/cldr-json-data-provider/src/download/cldr_paths_download.rs
+++ b/components/cldr-json-data-provider/src/downl... | 15 | 181 | 116 |
98f89ff9735a08379ef34d8c56d14e7aaddbf084 | Zibi Braniecki | 2020-10-09T17:32:47 | Reorder constructor arguments in PluralRules to align with DateTimeFormat. (#305) | diff --git a/components/pluralrules/benches/pluralrules.rs b/components/pluralrules/benches/pluralrules.rs
index 8a6b01227c..e9e365a7bf 100644
--- a/components/pluralrules/benches/pluralrules.rs
+++ b/components/pluralrules/benches/pluralrules.rs
@@ -16,7 +16,7 @@ fn pluralrules(c: &mut Criterion) {
c.bench_functi... | 5 | 15 | 15 |
e0e3dec2353613dc1e41fcb925494b905f64ecbd | Zibi Braniecki | 2020-10-09T17:30:31 | Add Unicode Set example (#302) | diff --git a/components/uniset/examples/unicode_bmp_blocks_selector.rs b/components/uniset/examples/unicode_bmp_blocks_selector.rs
new file mode 100644
index 0000000000..f52e85980e
--- /dev/null
+++ b/components/uniset/examples/unicode_bmp_blocks_selector.rs
@@ -0,0 +1,74 @@
+// An example application which uses icu_un... | 1 | 74 | 0 |
1eae2560a2b48329aa5b77968e27b91191ae9183 | Zibi Braniecki | 2020-10-08T20:33:37 | Add icu-locale macros (#220)
* Add icu-locale macros
* Add docs and improve langid variants handling in the macro.
* Apply feedback
* Specify in docs that we are performing syntax canonicalization. | diff --git a/Cargo.toml b/Cargo.toml
index abf3116d25..760dce1523 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,7 @@ members = [
"components/icu4x",
"components/uniset",
"components/locale",
+ "components/locale/macros",
"components/pluralrules",
"components/datetime",
"utils/fixe... | 11 | 635 | 13 |
51928c963c1a92983b7b0adcc7954a668abb86e9 | Dan Minor | 2020-10-08T20:19:13 | Implement Debug for LanguageIdentifier and Locale using to_string (#294) (#300)
* Implement Debug for LanguageIdentifier and Locale using to_string (#294)
* Address review feedback
* Avoid intermediate string | diff --git a/components/locale/src/langid.rs b/components/locale/src/langid.rs
index 3aa32cd926..455aa96385 100644
--- a/components/locale/src/langid.rs
+++ b/components/locale/src/langid.rs
@@ -50,7 +50,7 @@ use crate::subtags;
/// ```
///
/// [`Unicode BCP47 Language Identifier`]: https://unicode.org/reports/tr35/... | 2 | 14 | 2 |
6d6bcea21678159d29f26c5bd02bb9ce420001b4 | Zibi Braniecki | 2020-10-06T19:07:56 | Rename DummyDateTime to MockDateTime (#301) | diff --git a/components/datetime/benches/datetime.rs b/components/datetime/benches/datetime.rs
index fcf4b1849f..db780e3a3c 100644
--- a/components/datetime/benches/datetime.rs
+++ b/components/datetime/benches/datetime.rs
@@ -4,7 +4,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
use std::fmt::Write... | 6 | 34 | 34 |
d3a6cd1651e9720fbd883cfa44d78906586213ad | Shane F. Carr | 2020-10-03T05:10:13 | Improve performance of From<FixedDecimal> for PluralOperands (#289) | diff --git a/components/pluralrules/src/operands.rs b/components/pluralrules/src/operands.rs
index cc04ec271b..ea28c91472 100644
--- a/components/pluralrules/src/operands.rs
+++ b/components/pluralrules/src/operands.rs
@@ -202,48 +202,36 @@ impl_signed_integer_type!(i8 i16 i32 i64 i128 isize);
impl From<&FixedDecima... | 1 | 21 | 33 |
256eeeb342faec75c24026bbe65d8dce4bb8caab | Zibi Braniecki | 2020-10-02T19:07:10 | Fix name category for one pluralrules test. (#288) | diff --git a/components/pluralrules/benches/pluralrules.rs b/components/pluralrules/benches/pluralrules.rs
index 0b9e06bd4a..a0019ae39b 100644
--- a/components/pluralrules/benches/pluralrules.rs
+++ b/components/pluralrules/benches/pluralrules.rs
@@ -25,7 +25,7 @@ fn plurals_bench(c: &mut Criterion) {
let loc: L... | 1 | 1 | 1 |
456c03bfe2bd88bad0bac25830472b1acca01834 | Filip Filmar | 2020-10-02T02:10:37 | Some speed improvements to FixedDecimal parsing (#287)
* Some speed improvements to FixedDecimal parsing
* Change str iteration into bytes iteration. Since the input alphabet
is only single bytes, this should be OK.
* Use `FixedDecimal::default()` instead of zero for initialization.
Seems to make a 7% imp... | diff --git a/components/num-util/src/fixed_decimal.rs b/components/num-util/src/fixed_decimal.rs
index 6e0570db13..a7776fa0c7 100644
--- a/components/num-util/src/fixed_decimal.rs
+++ b/components/num-util/src/fixed_decimal.rs
@@ -385,15 +385,13 @@ impl FromStr for FixedDecimal {
if input_str == "" || input_st... | 1 | 18 | 20 |
3c7bc2dd61855233b90d0cc75e6e6642d6c695f4 | Sahand Farhoodi | 2020-10-01T01:41:13 | Adding from_str to FixedDecimal (#270)
* Implemented from_str for FixedDecimal and added two tests for it, added Syntax to enum Error for FixedDecimal
* Handled the case when the input string has only 0 in it and Added tests for it. Added test for test_from_str_usize_limits
* correction for clipping errors and f... | diff --git a/components/num-util/benches/fixed_decimal.rs b/components/num-util/benches/fixed_decimal.rs
index 18dc37fd6c..9b359394c7 100644
--- a/components/num-util/benches/fixed_decimal.rs
+++ b/components/num-util/benches/fixed_decimal.rs
@@ -5,6 +5,7 @@ use rand_pcg::Lcg64Xsh32;
use criterion::{black_box, criteri... | 3 | 429 | 9 |
25e3dc8453632176e593b5c5fd5d9b02d28350c0 | Evan P | 2020-09-24T17:12:13 | Uniset contains bugfix (#269)
Resolves #268 with an off-by-one error | diff --git a/components/uniset/src/uniset.rs b/components/uniset/src/uniset.rs
index 04969fcb46..89b45eaa89 100644
--- a/components/uniset/src/uniset.rs
+++ b/components/uniset/src/uniset.rs
@@ -124,7 +124,7 @@ impl UnicodeSet {
}
Err(pos) => {
if pos % 2 != 0 && pos < self.in... | 1 | 18 | 4 |
2a4da757b524707901028ccf3dd9541878c5d353 | Zibi Braniecki | 2020-09-23T03:47:47 | Adds Dates support for FsDataProviderExport (based on #258) (#261)
* Add support for Dates to CLDRJsonDataProvider
* Apply feedback
* Add Dates to FsDataProviderExport | diff --git a/components/fs-data-provider/src/bin/icu4x-cldr-export.rs b/components/fs-data-provider/src/bin/icu4x-cldr-export.rs
index db5624bc23..7f5c3ae8b4 100644
--- a/components/fs-data-provider/src/bin/icu4x-cldr-export.rs
+++ b/components/fs-data-provider/src/bin/icu4x-cldr-export.rs
@@ -95,6 +95,16 @@ fn main() ... | 2 | 27 | 0 |
ab00f54f6ce0fd898a6f8a6d70e77a24926a3dcd | Zibi Braniecki | 2020-09-22T02:38:12 | Add subset of dates data to DataProvider (#256)
* Add subset of dates data to DataProvider
* Apply feedback
* Make some fields mandatory
* Make StandAlone Widths optional
* Make short width optional as per UTS 35
* Readd skipping if short width is none
* Re-add default to empty values for Invariant | diff --git a/components/data-provider/src/data_key.rs b/components/data-provider/src/data_key.rs
index 35794892bb..0563c6c26f 100644
--- a/components/data-provider/src/data_key.rs
+++ b/components/data-provider/src/data_key.rs
@@ -10,6 +10,7 @@ use tinystr::TinyStr16;
pub enum DataCategory {
Decimal,
Plurals... | 4 | 132 | 13 |
1f08acccfec3fd1800c8fad8fbe43fabb3ffb652 | Zibi Braniecki | 2020-09-22T01:10:31 | Add example for icu_locale (#250)
* Add example for icu_locale
* Remodel the app
* Apply feedback
* Add a note | diff --git a/components/locale/Cargo.toml b/components/locale/Cargo.toml
index 29c1b95f18..c4c0908ca1 100644
--- a/components/locale/Cargo.toml
+++ b/components/locale/Cargo.toml
@@ -37,3 +37,7 @@ harness = false
[[bench]]
name = "locale"
harness = false
+
+[[example]]
+name = "filter_langids"
+test = true
diff --gi... | 2 | 62 | 0 |
b3891597b1e4e0e9e78a1679f0596229957a173b | Zibi Braniecki | 2020-09-21T20:52:22 | Add PluralRules example (#249)
* Add PluralRules example
* Apply feedback | diff --git a/components/pluralrules/examples/elevator_floors.rs b/components/pluralrules/examples/elevator_floors.rs
new file mode 100644
index 0000000000..db0f1782db
--- /dev/null
+++ b/components/pluralrules/examples/elevator_floors.rs
@@ -0,0 +1,37 @@
+// An example application which uses icu_pluralrules to construc... | 2 | 72 | 0 |
d6734764840095914f2c9be32a7f27eb544688cd | Shane F. Carr | 2020-09-18T06:57:56 | Adding example for FixedDecimal (#246) | diff --git a/components/num-util/examples/permyriad.rs b/components/num-util/examples/permyriad.rs
new file mode 100644
index 0000000000..699dc3f8f2
--- /dev/null
+++ b/components/num-util/examples/permyriad.rs
@@ -0,0 +1,13 @@
+// In computers, monetary values are sometimes stored as integers representing one ten-thou... | 1 | 13 | 0 |
79aafc379dbd957fb16bc733426ebf147260d571 | Zibi Braniecki | 2020-09-14T20:37:50 | Strip samples from CLDR PluralRules. (#233) | diff --git a/components/cldr-json-data-provider/Cargo.toml b/components/cldr-json-data-provider/Cargo.toml
index a20df81f9e..d71c4bcc87 100644
--- a/components/cldr-json-data-provider/Cargo.toml
+++ b/components/cldr-json-data-provider/Cargo.toml
@@ -17,6 +17,7 @@ include = [
[dependencies]
icu-data-provider = { path... | 2 | 10 | 7 |
3c012f9cf81c474b6daa5dc9a00c37e5ff30149d | Zibi Braniecki | 2020-09-03T19:52:26 | Fix feature detection in PluralRules to always include tuple-vec-map (#226) | diff --git a/components/pluralrules/src/data/cldr_resource.rs b/components/pluralrules/src/data/cldr_resource.rs
index aa80692d5f..bcad97cc21 100644
--- a/components/pluralrules/src/data/cldr_resource.rs
+++ b/components/pluralrules/src/data/cldr_resource.rs
@@ -1,27 +1,27 @@
use crate::PluralCategory;
-#[cfg(featur... | 1 | 17 | 17 |
49431d732d0f523098676f0bf5a1e65e0680904d | Elango | 2020-08-26T01:07:40 | Remove duplciate function definition (#215) | diff --git a/components/uniset/src/uniset.rs b/components/uniset/src/uniset.rs
index 33426020e2..04969fcb46 100644
--- a/components/uniset/src/uniset.rs
+++ b/components/uniset/src/uniset.rs
@@ -150,11 +150,6 @@ impl UnicodeSet {
self.contains_query(query as u32).is_some()
}
- /// Returns the inversi... | 1 | 0 | 5 |
862b34282f18f239451eaf32a63c872445ed143f | Evan P | 2020-08-25T04:23:59 | UnicodeSet Builder L2 (#195)
The L2 Builder API as discussed in #91.
Provides:
- UnicodeSetBuilder::new()
- UnicodeSetBuilder::build() -> UnicodeSet
- add_char, add_range, add_set
- remove_char, remove_range, remove_set
- retain_char, retain_range, retain_set
- complement, complement_char, complement_range,... | diff --git a/components/uniset/src/builder.rs b/components/uniset/src/builder.rs
new file mode 100644
index 0000000000..cba2dca06e
--- /dev/null
+++ b/components/uniset/src/builder.rs
@@ -0,0 +1,798 @@
+use std::{char, cmp::Ordering, ops::RangeBounds};
+
+use crate::{uniset::UnicodeSet, utils::deconstruct_range};
+
+//... | 3 | 858 | 6 |
5985c2b031b13c79c53aa2ed89df5f9a2bf634e3 | Evan P | 2020-08-25T00:35:42 | UnicodeSet L1 Span & Contains Set (#205)
* completed span, span_back, and contains_set | diff --git a/components/uniset/src/lib.rs b/components/uniset/src/lib.rs
index 48bb002b9b..b386805ba7 100644
--- a/components/uniset/src/lib.rs
+++ b/components/uniset/src/lib.rs
@@ -13,3 +13,9 @@ pub enum UnicodeSetError {
InvalidSet(Vec<u32>),
InvalidRange(u32, u32),
}
+
+#[derive(PartialEq)]
+pub enum Uni... | 2 | 133 | 1 |
f2d17131283d7f8bec5514c57789682943c3e5e9 | Zibi Braniecki | 2020-08-19T06:35:37 | Add PluralRules Serializer and extend parser to samples. (#206)
* Rename parse to parse_condition
* Add Serializer | diff --git a/components/pluralrules/benches/pluralrules.rs b/components/pluralrules/benches/pluralrules.rs
index 745e0b0dd5..14d5152e3d 100644
--- a/components/pluralrules/benches/pluralrules.rs
+++ b/components/pluralrules/benches/pluralrules.rs
@@ -6,7 +6,7 @@ use criterion::{black_box, criterion_group, criterion_mai... | 11 | 422 | 71 |
5bd88f2c9de480d47079a1e28d6b4e5c332730cb | Shane F. Carr | 2020-07-20T18:38:08 | Moving Error to lib.rs; adding crate-level docs | diff --git a/components/num-util/src/fixed_decimal.rs b/components/num-util/src/fixed_decimal.rs
index 657f21905c..5d07f9d497 100644
--- a/components/num-util/src/fixed_decimal.rs
+++ b/components/num-util/src/fixed_decimal.rs
@@ -8,28 +8,11 @@ use std::ops::RangeInclusive;
use static_assertions::const_assert;
use ... | 2 | 57 | 19 |
958fc891b7ea36a973434e768dad6bbf6c402b38 | Shane F. Carr | 2020-07-17T02:49:10 | Fixing clippy. Renaming benchmark file. | diff --git a/components/num-util/Cargo.toml b/components/num-util/Cargo.toml
index beaea97645..e5c06c2295 100644
--- a/components/num-util/Cargo.toml
+++ b/components/num-util/Cargo.toml
@@ -25,5 +25,5 @@ rand_pcg = "0.2"
rand_distr = "0.2"
[[bench]]
-name = "isize"
+name = "fixed_decimal"
harness = false
diff --g... | 2 | 3 | 1 |
3016ac0f2cf8893e30f50194a81612a363fbaf9f | Shane F. Carr | 2020-07-17T02:40:42 | Run cargo fmt; remove redundant +1 | diff --git a/components/num-util/src/fixed_decimal.rs b/components/num-util/src/fixed_decimal.rs
index 1278824ee4..657f21905c 100644
--- a/components/num-util/src/fixed_decimal.rs
+++ b/components/num-util/src/fixed_decimal.rs
@@ -322,7 +322,7 @@ impl FixedDecimal {
/// use icu_num_util::FixedDecimal;
///
... | 1 | 3 | 3 |
aff80a87906a7f7e70bceeb596a01076611836a1 | Shane F. Carr | 2020-07-17T02:38:23 | Add FixedDecimal::write_len() | diff --git a/components/num-util/benches/isize.rs b/components/num-util/benches/isize.rs
index 2b4f1521ce..0ebbcfd75b 100644
--- a/components/num-util/benches/isize.rs
+++ b/components/num-util/benches/isize.rs
@@ -51,7 +51,6 @@ fn larger_isize_benches(c: &mut Criterion) {
fn to_string_benches(c: &mut Criterion) {
... | 2 | 26 | 4 |
70e2080934e1f7ff24a866ed7fd4f18b1c4f5eaf | Shane F. Carr | 2020-07-17T02:20:42 | Cargo clippy and fmt cleanup. Adding benchmark for write_to. | diff --git a/components/num-util/benches/isize.rs b/components/num-util/benches/isize.rs
index f7c6a8aa22..2b4f1521ce 100644
--- a/components/num-util/benches/isize.rs
+++ b/components/num-util/benches/isize.rs
@@ -2,7 +2,7 @@ use rand::SeedableRng;
use rand_distr::{Distribution, Triangular};
use rand_pcg::Lcg64Xsh32... | 2 | 62 | 33 |
2ff56c57472aecc3e4d19710d50e758c7c60bc96 | Shane F. Carr | 2020-07-17T02:05:23 | Changing adjust_magnitude to multiply_pow10 | diff --git a/components/num-util/src/fixed_decimal.rs b/components/num-util/src/fixed_decimal.rs
index 581ffe0004..6c0e4bb24d 100644
--- a/components/num-util/src/fixed_decimal.rs
+++ b/components/num-util/src/fixed_decimal.rs
@@ -24,7 +24,7 @@ pub enum Error {
/// use icu_num_util::fixed_decimal::Error;
///
... | 1 | 13 | 13 |
fd52c4a42bfac0c91c2cdc95e9086a0fa1366db9 | Shane F. Carr | 2020-07-17T02:04:14 | More review feedback; implementing Display; adding immutable adjust_magnitude | diff --git a/components/num-util/Cargo.toml b/components/num-util/Cargo.toml
index e2cd82c952..beaea97645 100644
--- a/components/num-util/Cargo.toml
+++ b/components/num-util/Cargo.toml
@@ -15,8 +15,8 @@ include = [
]
[dependencies]
-smallvec = "1.4.1"
-static_assertions = "1.1.0"
+smallvec = "1.4"
+static_asserti... | 3 | 96 | 28 |
bf22aff039afb2657140647c15c09bc0e282b90b | Shane F. Carr | 2020-07-11T09:04:32 | Code review feedback | diff --git a/components/num-util/Cargo.toml b/components/num-util/Cargo.toml
index cc3977b8dd..e2cd82c952 100644
--- a/components/num-util/Cargo.toml
+++ b/components/num-util/Cargo.toml
@@ -17,13 +17,12 @@ include = [
[dependencies]
smallvec = "1.4.1"
static_assertions = "1.1.0"
-more-asserts = "0.2.1"
[dev-depe... | 3 | 12 | 16 |
a960f2b0f072dbb06717ecd1ffa92f85edb85006 | Shane F. Carr | 2020-07-08T00:11:23 | Running cargo fmt | diff --git a/components/num-util/src/uint_iterator.rs b/components/num-util/src/uint_iterator.rs
index 66e4096b1f..31b529406a 100644
--- a/components/num-util/src/uint_iterator.rs
+++ b/components/num-util/src/uint_iterator.rs
@@ -21,7 +21,7 @@ macro_rules! impl_iterator_unsigned_integer_type {
}
... | 1 | 1 | 1 |
7e3cebbd36db43e36d9a16a09862c869a23fc02f | Shane F. Carr | 2020-07-08T00:11:07 | Move Iterator implementation into macro_rules! | diff --git a/components/num-util/src/uint_iterator.rs b/components/num-util/src/uint_iterator.rs
index f67be927e4..66e4096b1f 100644
--- a/components/num-util/src/uint_iterator.rs
+++ b/components/num-util/src/uint_iterator.rs
@@ -1,5 +1,3 @@
-use std::convert::TryInto;
-
/// An iterator over the decimal digits of an ... | 1 | 21 | 26 |
28f3ea19d36b78691ad469c0793100366923c2af | Shane F. Carr | 2020-07-07T23:57:46 | Running cargo fmt | diff --git a/components/num-util/src/fixed_decimal.rs b/components/num-util/src/fixed_decimal.rs
index 21a93156dd..636874892d 100644
--- a/components/num-util/src/fixed_decimal.rs
+++ b/components/num-util/src/fixed_decimal.rs
@@ -259,12 +259,18 @@ impl FixedDecimal {
/// ```
pub fn adjust_magnitude(&mut self... | 1 | 8 | 2 |
0cf39e9126131bb79739320c1434e5fc8177e917 | Shane F. Carr | 2020-07-07T23:57:26 | Assorted code review cleanup | diff --git a/components/num-util/src/fixed_decimal.rs b/components/num-util/src/fixed_decimal.rs
index 595ccf4175..21a93156dd 100644
--- a/components/num-util/src/fixed_decimal.rs
+++ b/components/num-util/src/fixed_decimal.rs
@@ -171,7 +171,7 @@ impl FixedDecimal {
return Err(Error::Limit);
... | 1 | 5 | 10 |
48d1c1cbda7732960fc030f63ae08d978fee685c | Shane F. Carr | 2020-07-07T23:50:37 | Use only standard library integer types in FixedDecimal | diff --git a/components/num-util/Cargo.toml b/components/num-util/Cargo.toml
index 80259b3c2c..cc3977b8dd 100644
--- a/components/num-util/Cargo.toml
+++ b/components/num-util/Cargo.toml
@@ -15,16 +15,13 @@ include = [
]
[dependencies]
-smallvec = "1.4.0"
-num-traits = "0.2.12"
-num-integer = "0.1.43"
+smallvec = "... | 3 | 129 | 137 |
a4fd2979ba2f3a654eb7acca2044ff0aa8abe7a3 | Shane F. Carr | 2020-06-30T18:06:49 | Fix another clippy warning | diff --git a/components/data-provider-json/tests/test_file_io.rs b/components/data-provider-json/tests/test_file_io.rs
index 38a85fdcba..ec242bb7c7 100644
--- a/components/data-provider-json/tests/test_file_io.rs
+++ b/components/data-provider-json/tests/test_file_io.rs
@@ -1,5 +1,3 @@
-use icu_data_provider_json;
-
u... | 1 | 0 | 2 |
e9091eab8f9622eb0b3e02f33f98ca276220c6d0 | Shane F. Carr | 2020-06-30T01:49:19 | Fix more clippy warnings | diff --git a/components/data-provider-json/tests/test_no_std.rs b/components/data-provider-json/tests/test_no_std.rs
index 19210f9660..fcb8cb7b32 100644
--- a/components/data-provider-json/tests/test_no_std.rs
+++ b/components/data-provider-json/tests/test_no_std.rs
@@ -8,6 +8,7 @@ use icu_data_provider as datap;
use ... | 4 | 6 | 4 |
6ce5090ea4088d432604ad59734e4ebc3d9c849c | Shane F. Carr | 2020-06-27T00:14:19 | Fix cargo clippy warnings in data provider code | diff --git a/components/data-provider-json/src/lib.rs b/components/data-provider-json/src/lib.rs
index 8f61dfb974..0d8eb827aa 100644
--- a/components/data-provider-json/src/lib.rs
+++ b/components/data-provider-json/src/lib.rs
@@ -4,6 +4,8 @@ extern crate no_std_compat as std;
use std::prelude::v1::*;
+use std::st... | 3 | 16 | 8 |
df8ec44ab817f439dc978814123e56140d5f0d3f | Shane F. Carr | 2020-06-26T04:35:34 | Fix cargo fmt | diff --git a/components/data-provider/src/decimal.rs b/components/data-provider/src/decimal.rs
index 18586b3ef8..e1fd904be9 100644
--- a/components/data-provider/src/decimal.rs
+++ b/components/data-provider/src/decimal.rs
@@ -2,8 +2,8 @@
use std::prelude::v1::*;
-use smallstr::SmallString;
use serde::{Deserializ... | 1 | 1 | 1 |
b9ac6121edd6f9b1256157db10c2563669da2428 | Shane F. Carr | 2020-06-26T03:10:54 | Adding benchmarks and review feedback | diff --git a/components/num-util/Cargo.toml b/components/num-util/Cargo.toml
index ac4437a8c9..80259b3c2c 100644
--- a/components/num-util/Cargo.toml
+++ b/components/num-util/Cargo.toml
@@ -16,6 +16,18 @@ include = [
[dependencies]
smallvec = "1.4.0"
-num = "0.2.1"
+num-traits = "0.2.12"
+num-integer = "0.1.43"
s... | 4 | 69 | 13 |
360cb202a80dd7ec3efe8e0c564d4a934290ae60 | Shane F. Carr | 2020-06-22T23:42:29 | Removing overkill class DigitConverter | diff --git a/components/num-util/src/digit_converter.rs b/components/num-util/src/digit_converter.rs
deleted file mode 100644
index e5ebbbe0a1..0000000000
--- a/components/num-util/src/digit_converter.rs
+++ /dev/null
@@ -1,101 +0,0 @@
-use std::convert::TryInto;
-
-/// Converts between chars and u8 decimal digits usin... | 3 | 1 | 105 |
723331870bfda52c32117061ad99d2e61f20b311 | Shane F. Carr | 2020-06-20T19:17:10 | Run cargo fmt | diff --git a/components/num-util/src/lib.rs b/components/num-util/src/lib.rs
index a45bf1cba3..64d92048ae 100644
--- a/components/num-util/src/lib.rs
+++ b/components/num-util/src/lib.rs
@@ -1,5 +1,5 @@
-pub mod fixed_decimal;
mod digit_converter;
+pub mod fixed_decimal;
mod uint_iterator;
pub use fixed_decimal::F... | 1 | 1 | 1 |
fe3cf98bc4b04039d12b9c744e5bb71506c14211 | Nebojša Ćirić | 2020-06-10T18:38:29 | Point to license file vs explict license name. | diff --git a/components/data-provider-json/Cargo.toml b/components/data-provider-json/Cargo.toml
index 3c52a1e268..677e086fa1 100644
--- a/components/data-provider-json/Cargo.toml
+++ b/components/data-provider-json/Cargo.toml
@@ -6,7 +6,7 @@ authors = ["The ICU4X Project Developers"]
edition = "2018"
readme = "READM... | 5 | 5 | 5 |
c663a313ee815d9e546fb778057263d33182156e | Shane F. Carr | 2020-06-09T01:40:07 | Use LanguageIdentifier::default() | diff --git a/components/data-provider-json/Cargo.toml b/components/data-provider-json/Cargo.toml
index a7cf64ad09..3c52a1e268 100644
--- a/components/data-provider-json/Cargo.toml
+++ b/components/data-provider-json/Cargo.toml
@@ -20,6 +20,7 @@ std = ["no-std-compat/std", "serde/std", "serde_json/std"]
[dependencies... | 2 | 3 | 1 |
56d678e8f302e2e104fdd451e4fa428e0fdbe4db | Shane F. Carr | 2020-06-06T07:44:20 | Use LanguageIdentifier instead of String | diff --git a/components/data_provider/Cargo.toml b/components/data_provider/Cargo.toml
index fa9a42c95c..7584a07edd 100644
--- a/components/data_provider/Cargo.toml
+++ b/components/data_provider/Cargo.toml
@@ -18,6 +18,9 @@ include = [
default = ["std"]
std = ["serde/std", "no-std-compat/std"]
+[dependencies]
+icu... | 5 | 13 | 10 |
82af10e6413c3a891173a4b8444b069c2c817a66 | Shane F. Carr | 2020-06-06T07:25:32 | Running cargo fmt | diff --git a/components/data_provider_json/src/lib.rs b/components/data_provider_json/src/lib.rs
index acb8e8cae5..2e6b07e4c6 100644
--- a/components/data_provider_json/src/lib.rs
+++ b/components/data_provider_json/src/lib.rs
@@ -69,7 +69,8 @@ fn test_empty_str() {
let result = JsonDataProvider::from_str("");
... | 3 | 5 | 4 |
e738a9f4ef65a5ec1dbcbd8d23af8249cc2266a2 | Shane F. Carr | 2020-06-06T07:15:24 | Add key From impl | diff --git a/components/data_provider/src/decimal.rs b/components/data_provider/src/decimal.rs
index 591d1cd7b4..55dd6a211c 100644
--- a/components/data_provider/src/decimal.rs
+++ b/components/data_provider/src/decimal.rs
@@ -11,6 +11,12 @@ pub enum Key {
SymbolsV1 = 1,
}
+impl From<Key> for crate::Key {
+ ... | 3 | 8 | 2 |
0d6828aea40625cb904a752b6553bb8a832b5454 | Shane F. Carr | 2020-06-06T06:42:05 | Coverage | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index b404249bcb..94bf8ef11f 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -23,6 +23,7 @@ impl From<serde_json::error::Error> for Error {
}
/// A data provider reading from a JSON file.
+#[deri... | 4 | 24 | 2 |
2194dbf4051ad530ed2789d3afe58ad8658b67f2 | Shane F. Carr | 2020-05-29T21:02:15 | Add backreference | diff --git a/components/util/src/datap/decimal.rs b/components/util/src/datap/decimal.rs
index f145228776..591d1cd7b4 100644
--- a/components/util/src/datap/decimal.rs
+++ b/components/util/src/datap/decimal.rs
@@ -15,6 +15,8 @@ pub enum Key {
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
pub struct Symb... | 1 | 2 | 0 |
08ac7f122e8ad1155ca59d93a4ec12843e6797a3 | Shane F. Carr | 2020-05-29T21:00:15 | Allow strings in SymbolsV1 to be static | diff --git a/components/datap_json/tests/test_file_io.rs b/components/datap_json/tests/test_file_io.rs
index b4e6a7298d..7f6867eca5 100644
--- a/components/datap_json/tests/test_file_io.rs
+++ b/components/datap_json/tests/test_file_io.rs
@@ -1,5 +1,7 @@
use icu_datap_json;
+use std::borrow::Cow;
+
use std::fs::Fil... | 3 | 10 | 6 |
40205d935c9632ad11a7faa5af36d1eb4fe119fd | Shane F. Carr | 2020-05-28T01:54:35 | Upgrade JsonDataProvider to returned borrowed data | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 0c7554a73f..b404249bcb 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -48,15 +48,13 @@ impl JsonDataProvider {
}
}
-impl datap::DataProvider<'static> for JsonDataProvider {
- /// Lo... | 3 | 36 | 15 |
d95b1fc037ff8e5052bcec834da3f98b3b67adb3 | Shane F. Carr | 2020-05-28T00:02:55 | Removing Request from Response object. | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 5f13150e7b..0c7554a73f 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -50,12 +50,11 @@ impl JsonDataProvider {
impl datap::DataProvider<'static> for JsonDataProvider {
/// Loads JSON d... | 2 | 3 | 9 |
d8b7b12e35231a1a30553024ef08c52d9556232d | Shane F. Carr | 2020-05-27T23:53:54 | Add lifetime parameter to DataProvider. | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index f426ea7881..5f13150e7b 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -48,13 +48,14 @@ impl JsonDataProvider {
}
}
-impl datap::DataProvider for JsonDataProvider {
- fn load(&self, ... | 4 | 18 | 14 |
6dd1f3430ae7c39ce43d4138deb5017cbca7d769 | Shane F. Carr | 2020-05-20T00:35:58 | Initial code review feedback | diff --git a/components/datap_json/tests/test_file_io.rs b/components/datap_json/tests/test_file_io.rs
index f12ef2230d..baa626607d 100644
--- a/components/datap_json/tests/test_file_io.rs
+++ b/components/datap_json/tests/test_file_io.rs
@@ -1,4 +1,4 @@
-extern crate icu_datap_json;
+use icu_datap_json;
use std::fs... | 2 | 4 | 4 |
427c76daa997967c2a59c88d2fa406f2078c4e09 | Shane F. Carr | 2020-05-16T06:33:08 | Change payload functions to return Error instead of Option | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 01c2ec9332..f426ea7881 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -3,7 +3,6 @@
extern crate no_std_compat as std;
use std::prelude::v1::*;
-// use async_trait::async_trait;
use icu_... | 3 | 48 | 13 |
488fe228d7bd4ffa3b2f5632f87875ba7614ab3f | Shane F. Carr | 2020-05-16T00:33:24 | Comments and refactoring. | diff --git a/components/util/src/datap/helpers.rs b/components/util/src/datap/helpers.rs
new file mode 100644
index 0000000000..530cafe041
--- /dev/null
+++ b/components/util/src/datap/helpers.rs
@@ -0,0 +1,29 @@
+use std::prelude::v1::*;
+
+use downcast_rs::Downcast;
+use downcast_rs::impl_downcast;
+use std::fmt::{De... | 2 | 52 | 39 |
d55f1fd939f45aa48a97bed7c354d9fd925ae997 | Shane F. Carr | 2020-05-16T00:20:08 | Remove unused unstable feature | diff --git a/components/util/src/lib.rs b/components/util/src/lib.rs
index 48609d6bb6..f0e69ee2aa 100644
--- a/components/util/src/lib.rs
+++ b/components/util/src/lib.rs
@@ -1,5 +1,4 @@
#![no_std]
-#![feature(type_name_of_val)]
extern crate no_std_compat as std; | 1 | 0 | 1 |
e1fa91ca1e6952593532aeb62631b4e29038e1ee | Zibi Braniecki | 2020-05-14T21:48:52 | Add serde Serialize/Deserialize for LanguageIdentifier. | diff --git a/components/locale/Cargo.toml b/components/locale/Cargo.toml
index 992c4c3b1c..3ee039eab3 100644
--- a/components/locale/Cargo.toml
+++ b/components/locale/Cargo.toml
@@ -16,6 +16,7 @@ include = [
[dependencies]
tinystr = "0.3"
+serde = { version = "1.0", optional = true }
[dev-dependencies]
criteri... | 4 | 73 | 0 |
727f40b886226c552bd70bfeb02c215a096e682f | Shane F. Carr | 2020-05-07T06:20:08 | Running cargo fmt | diff --git a/components/datap_json/tests/test_no_std.rs b/components/datap_json/tests/test_no_std.rs
index f16c465542..cbb04fd636 100644
--- a/components/datap_json/tests/test_no_std.rs
+++ b/components/datap_json/tests/test_no_std.rs
@@ -1,7 +1,7 @@
extern crate icu_datap_json;
-use std::prelude::v1::*;
use std::b... | 1 | 18 | 14 |
4cd595a85fe947258f6c9f201c240d2d78d89347 | Shane F. Carr | 2020-05-06T07:27:38 | Running cargo fmt | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 1caf82cd1b..01c2ec9332 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -14,7 +14,7 @@ use std::io::Read;
#[derive(Debug)]
pub enum Error {
- JsonError(serde_json::error::Error)
+ Json... | 3 | 38 | 36 |
1ed302a2c597edfececcfc514b4de0d848c8f852 | Shane F. Carr | 2020-05-06T07:26:33 | Adding take_payload, plus other cleanup | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 66d4038b61..1caf82cd1b 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -46,10 +46,13 @@ impl JsonDataProvider {
}
impl datap::DataProvider for JsonDataProvider {
- fn load(&self, _reques... | 4 | 100 | 38 |
dbb767d7a3415298c3b6eb22abbae51a022f7d88 | Shane F. Carr | 2020-05-01T07:26:18 | Fix spelling of Cloneable | diff --git a/components/util/src/datap/mod.rs b/components/util/src/datap/mod.rs
index 919f3c8c02..b96964121a 100644
--- a/components/util/src/datap/mod.rs
+++ b/components/util/src/datap/mod.rs
@@ -50,23 +50,23 @@ pub struct Request {
pub payload: Option<Str>,
}
-trait ClonableAny: Debug + Any {
- fn clone_... | 1 | 13 | 13 |
1791debd14aec527cd078bd288ba31020f937c56 | Shane F. Carr | 2020-05-01T07:24:40 | Additional polishing of Response struct | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 0e1b961856..0f1142d021 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -4,10 +4,8 @@ extern crate no_std_compat as std;
use std::prelude::v1::*;
// use async_trait::async_trait;
-use std::b... | 4 | 64 | 15 |
457d8ad110a303a9418916fbce0a0dfb4ddc51bc | Shane F. Carr | 2020-05-01T06:30:35 | Rename Bovine to ClonableAny | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index a6e27e5c7d..0e1b961856 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -7,7 +7,7 @@ use std::prelude::v1::*;
use std::borrow::Cow;
use icu_util::datap;
-use icu_util::datap::Bovine;
+use ic... | 2 | 13 | 13 |
5950fdb4b228b2d345313d6ec9727c86ec0bef66 | Shane F. Carr | 2020-05-01T06:28:10 | Auto-implement Bovine for all data traits | diff --git a/components/datap_json/tests/test_file_io.rs b/components/datap_json/tests/test_file_io.rs
index 401da47a80..bfad6ff7e3 100644
--- a/components/datap_json/tests/test_file_io.rs
+++ b/components/datap_json/tests/test_file_io.rs
@@ -16,13 +16,13 @@ fn test_read_json() {
let file = File::open("./tests/tes... | 4 | 29 | 23 |
9d0298d12ff0f1d792ac31937dc01bb6607228c6 | Shane F. Carr | 2020-04-30T02:16:24 | Rename payload2 to payload | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 65318c65ce..a6e27e5c7d 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -41,7 +41,7 @@ impl datap::DataProvider for JsonDataProvider {
// TODO: Use the request variable
Ok(data... | 2 | 3 | 3 |
7cff876b0edcac354c866dbee86ad713fb598ef4 | Shane F. Carr | 2020-04-30T02:14:53 | Remove obsolete code | diff --git a/components/datap_json/src/lib.rs b/components/datap_json/src/lib.rs
index 25a5a16420..65318c65ce 100644
--- a/components/datap_json/src/lib.rs
+++ b/components/datap_json/src/lib.rs
@@ -41,7 +41,6 @@ impl datap::DataProvider for JsonDataProvider {
// TODO: Use the request variable
Ok(data... | 5 | 1 | 29 |
b495fcbbc0c21166dbbf5b6dad3fbde9b6cb5790 | Shane F. Carr | 2020-04-30T02:09:08 | Remove icu_util::std | diff --git a/components/util/src/std/mod.rs b/components/util/src/std/mod.rs
deleted file mode 100644
index e2a59f8e61..0000000000
--- a/components/util/src/std/mod.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-extern crate alloc;
-
-pub use alloc::boxed::Box;
-pub use alloc::string::String;
-pub use alloc::borrow::Cow;
-
-pub use... | 1 | 0 | 7 |
bb1e1b515aac3accfe412cd42f8e2a892c39adf6 | Shane F. Carr | 2020-04-28T06:37:50 | Add an initial data provider trait definition | diff --git a/components/util/Cargo.toml b/components/util/Cargo.toml
index 5522790724..55da9bce04 100644
--- a/components/util/Cargo.toml
+++ b/components/util/Cargo.toml
@@ -13,3 +13,6 @@ include = [
"Cargo.toml",
"README.md"
]
+
+[dependencies]
+async-trait = "0.1.30"
diff --git a/components/util/src/datap... | 5 | 90 | 0 |
9066abe7be0c73ef28c4ca9c4b68c8aa48e5697a | Nebojša Ćirić | 2020-04-17T18:16:18 | Fix misspelling | diff --git a/components/locale/Cargo.toml b/components/locale/Cargo.toml
index 7eb518224d..8e5b06f017 100644
--- a/components/locale/Cargo.toml
+++ b/components/locale/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "icu-locale"
-description = "API for managing Unicode Langauge and Locale Identifiers"
+description = "API... | 1 | 1 | 1 |
8d64976d09227eb5a817ec6a8ec42cbf44d5a108 | Nebojša Ćirić | 2020-04-13T23:37:02 | Move Cargo to top, lose components for now. | diff --git a/components/Cargo.toml b/Cargo.toml
similarity index 100%
rename from components/Cargo.toml
rename to Cargo.toml | 1 | 0 | 0 |
a821fdd04daa168555cf001ba3ab4906cf92f910 | Nebojša Ćirić | 2020-04-13T22:34:49 | Adding components root and empty workspace config | diff --git a/components/Cargo.toml b/components/Cargo.toml
new file mode 100644
index 0000000000..3297d5372c
--- /dev/null
+++ b/components/Cargo.toml
@@ -0,0 +1,3 @@
+[workspace]
+
+members = [] | 1 | 3 | 0 |
0e2075e4addc9771dbe5388b6d30fd4344308bd1 | Donny/강동윤 | 2026-03-29T01:09:02 | feat(react-compiler): improve Stage A diagnostic parity and validation aggregation (#11745)
## Summary
- improve Stage A diagnostic parity for `swc_ecma_react_compiler`
fixtures
- align several diagnostic reason/description strings with upstream
fixture expectations
- aggregate validation diagnostics in `compile_fn` s... | diff --git a/crates/swc_ecma_react_compiler/src/entrypoint/imports.rs b/crates/swc_ecma_react_compiler/src/entrypoint/imports.rs
index 08bd43438d..3373b0aee1 100644
--- a/crates/swc_ecma_react_compiler/src/entrypoint/imports.rs
+++ b/crates/swc_ecma_react_compiler/src/entrypoint/imports.rs
@@ -68,10 +68,10 @@ pub fn va... | 8 | 476 | 36 |
7e1ad26b49295085208c2e4ddfb175c479da53bc | Donny/강동윤 | 2026-03-27T12:51:38 | feat(react-compiler): M1 memo validators + lint gating alignment (#11739)
## Summary
This PR implements the M1 slice of the React Compiler SWC port
finalization plan:
- implement non-placeholder validation for manual memo preservation and
exhaustive deps
- add shared dependency analysis helpers
- align a subset of pip... | diff --git a/crates/swc_ecma_react_compiler/src/entrypoint/program.rs b/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
index e7e76dada9..3a991ddaad 100644
--- a/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
+++ b/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
@@ -246,8 +246,8 @@ pub fn co... | 5 | 978 | 15 |
4739c586d0deb88d3d536835adb873b9c036bef5 | Donny/강동윤 | 2026-03-25T04:09:29 | feat(react-compiler): improve SWC parity for early-return and hooks validation (#11738)
## Summary
This draft continues the React Compiler SWC parity port inside
`crates/swc_ecma_react_compiler`.
Current upstream fixture status (continue mode):
- `FAILED_FIXTURE`: **1029 / 1718** (was **1040 / 1718**)
- `fixture mis... | diff --git a/crates/swc_ecma_react_compiler/src/entrypoint/program.rs b/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
index 00feaed13b..e7e76dada9 100644
--- a/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
+++ b/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
@@ -329,7 +329,8 @@ pub fn co... | 4 | 340 | 46 |
7e2cf8d46a6f41967b93858d9f3269ae46370d14 | Donny/강동윤 | 2026-03-24T13:55:32 | feat(react-compiler): tighten core validation parity for upstream fixtures (#11734)
## Summary
This PR continues the React Compiler SWC core-only parity work in
`crates/swc_ecma_react_compiler`.
### What changed
- Aligned `compile_fn` pipeline ordering with upstream behavior in
[`program.rs`](crates/swc_ecma_react_... | diff --git a/crates/swc_ecma_react_compiler/src/entrypoint/program.rs b/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
index 877a54c899..00feaed13b 100644
--- a/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
+++ b/crates/swc_ecma_react_compiler/src/entrypoint/program.rs
@@ -277,9 +277,9 @@ pub fn co... | 5 | 657 | 45 |
abaee544e7ef4a97d2d86b16f2fa5974dac06ef8 | Donny/강동윤 | 2026-03-24T07:18:36 | chore: trigger CI and fix failures (#11735)
This PR starts with an empty commit to trigger CI, then applies fixes
for failing jobs. | diff --git a/Cargo.lock b/Cargo.lock
index 734cfd0e9a..67716d3b91 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -773,7 +773,7 @@ dependencies = [
"cap-primitives",
"cap-std",
"io-lifetimes 2.0.4",
- "windows-sys 0.59.0",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -790,7 +790,7 @@ dependencies = [
"maybe-owned",... | 1 | 14 | 14 |
f3f4e51cedb3051a7c75c0cdecaa17e1d276597f | Donny/강동윤 | 2026-03-20T16:09:53 | fix(cli): skip mkdir when --out-file targets the current directory (#11720)
When `--out-file file.min.js` is used without a directory component,
`Path::parent()` returns an empty string. Calling `create_dir_all("")`
fails on Windows with EEXIST. Skip the directory creation when the
parent path is empty.
Closes #11717... | diff --git a/crates/swc_cli_impl/src/commands/compile.rs b/crates/swc_cli_impl/src/commands/compile.rs
index e6b7c9a023..86c9825765 100644
--- a/crates/swc_cli_impl/src/commands/compile.rs
+++ b/crates/swc_cli_impl/src/commands/compile.rs
@@ -241,7 +241,7 @@ fn emit_output(
.parent()
.expect("... | 2 | 35 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.