Skip to content

Commit

Permalink
Feature fixes (#3554)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored Jun 21, 2023
1 parent e41030c commit 09ad8b7
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion components/collator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
arraystring = "0.3.0"
atoi = "1.0.0"
icu = { path = "../icu" }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_collator", "icu_normalizer"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_collator", "icu_normalizer", "icu_locid_transform"] }
criterion = "0.4"

[features]
Expand Down
2 changes: 1 addition & 1 deletion components/collections/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ criterion = "0.4"
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
iai = "0.1.1"
icu = { path = "../icu", default-features = false }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_properties"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_properties", "icu_locid_transform"] }

[features]
std = []
Expand Down
2 changes: 1 addition & 1 deletion components/datetime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ icu = { path = "../icu", default-features = false }
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
icu_provider = { path = "../../provider/core" }
icu_provider_adapters = { path = "../../provider/adapters" }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["buffer", "icu_datetime", "icu_timezone", "icu_calendar", "icu_decimal", "icu_plurals"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["buffer", "icu_datetime", "icu_timezone", "icu_calendar", "icu_decimal", "icu_plurals", "icu_locid_transform"] }
litemap = { path = "../../utils/litemap" }

serde = { version = "1.0", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion components/decimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
criterion = "0.4"
icu = { path = "../icu", default-features = false }
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_decimal"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_decimal", "icu_locid_transform"] }
icu_provider_adapters = { path = "../../provider/adapters" }
rand = "0.8"
rand_pcg = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion components/normalizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
arraystring = "0.3.0"
arrayvec = "0.7.2"
atoi = "1.0.0"
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_normalizer", "icu_properties"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_normalizer", "icu_properties", "icu_locid_transform"] }
write16 = { version = "1.0", features = ["arrayvec"] }
detone = "1.0.0"
criterion = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion components/plurals/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ criterion = "0.4"
icu = { path = "../icu" }
icu_benchmark_macros = { path = "../../tools/benchmark/macros" }
icu_provider = { path = "../../provider/core" }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_plurals"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_plurals", "icu_locid_transform"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

Expand Down
2 changes: 1 addition & 1 deletion components/properties/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ unicode-bidi = { version = "0.3.13", default-features = false, optional = true }

[dev-dependencies]
icu = { path = "../icu", default-features = false }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_properties"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_properties", "icu_locid_transform"] }

[features]
std = ["icu_collections/std", "icu_provider/std"]
Expand Down
2 changes: 1 addition & 1 deletion components/segmenter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ libm = { version = "0.2", default-features = false, optional = true }

[dev-dependencies]
criterion = "0.4"
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["buffer", "icu_segmenter", "icu_properties"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["buffer", "icu_segmenter", "icu_properties", "icu_locid_transform"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = "1.0"
icu = { path = "../../components/icu" }
Expand Down
2 changes: 1 addition & 1 deletion components/timezone/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ icu_timezone_data = { path = "data", optional = true }

[dev-dependencies]
icu = { path = "../../components/icu", default-features = false }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_timezone"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_timezone", "icu_locid_transform"] }

[features]
std = ["icu_calendar/std", "icu_locid/std", "icu_provider/std"]
Expand Down
2 changes: 1 addition & 1 deletion experimental/compactdecimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo

[dev-dependencies]
icu_locid = { path = "../../components/locid" }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_plurals", "icu_decimal", "icu_compactdecimal", "buffer"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_plurals", "icu_decimal", "icu_compactdecimal", "icu_locid_transform", "buffer"] }

[features]
std = ["fixed_decimal/std", "icu_decimal/std", "icu_plurals/std", "icu_provider/std"]
Expand Down
2 changes: 1 addition & 1 deletion experimental/displaynames/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ databake = { version = "0.1.3", path = "../../utils/databake", features = ["deri
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"], optional = true }

[dev-dependencies]
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_displaynames"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_displaynames", "icu_locid_transform"] }

[features]
std = ["icu_collections/std", "icu_locid/std", "icu_provider/std"]
Expand Down
2 changes: 1 addition & 1 deletion experimental/relativetime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo

[dev-dependencies]
icu = { path = "../../components/icu", features = ["icu_relativetime"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_plurals", "icu_decimal", "icu_relativetime"] }
icu_testdata = { path = "../../provider/testdata", default-features = false, features = ["icu_plurals", "icu_decimal", "icu_relativetime", "icu_locid_transform"] }

[features]
std = ["fixed_decimal/std", "icu_decimal/std", "icu_plurals/std", "icu_provider/std"]
Expand Down
1 change: 0 additions & 1 deletion provider/testdata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ pub fn any_no_fallback() -> impl AnyProvider {
/// This deserializes a large data blob from static memory, please cache the result if you
/// are calling this repeatedly and care about performance
#[cfg(feature = "buffer")]
#[cfg(feature = "icu_locid_transform")]
pub fn buffer() -> impl BufferProvider {
// The statically compiled data file is valid.
#[allow(clippy::unwrap_used)]
Expand Down

0 comments on commit 09ad8b7

Please sign in to comment.