Skip to content

Commit

Permalink
experimental_components
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Jul 20, 2023
1 parent 2c132ec commit 7e093fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 14 additions & 2 deletions provider/datagen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ use_wasm = ["icu_codepointtrie_builder/wasm"]
# rule based segmenter data will not be generated.
use_icu4c = ["icu_codepointtrie_builder/icu4c"]
networking = ["dep:ureq"]
experimental_components = [
"icu_casemap",
"icu_compactdecimal",
"icu_displaynames",
"icu_relativetime",
]

[[bin]]
name = "icu4x-datagen"
Expand All @@ -124,6 +130,12 @@ required-features = ["provider_fs", "use_wasm"]

[package.metadata.cargo-all-features]
# We don't need working CPT builders for check
skip_feature_sets = [["use_icu4c"], ["use_wasm"]]
always_include_features = ["icu_casemap", "icu_compactdecimal", "icu_displaynames", "icu_relativetime"]
skip_feature_sets = [
["use_icu4c"],
["use_wasm"],
["icu_casemap"],
["icu_compactdecimal"],
["icu_displaynames"],
["icu_relativetime"],
]
max_combination_size = 3
6 changes: 3 additions & 3 deletions tools/make/data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ args = [
"test",
"-p=icu_datagen",
"--no-default-features",
"--features=provider_fs,use_wasm,rayon,icu_casemap,icu_compactdecimal,icu_displaynames,icu_relativetime",
"--features=provider_fs,use_wasm,rayon,experimental_components",
"generate_json_and_verify_postcard",
"--",
"--nocapture"
Expand Down Expand Up @@ -86,11 +86,11 @@ script = '''
exit_on_error true
if array_is_empty ${@}
exec --fail-on-error cargo build -p icu_datagen --no-default-features --features rayon,provider_baked,bin,use_wasm,networking,icu_casemap,icu_displaynames,icu_relativetime,icu_compactdecimal --release
exec --fail-on-error cargo build -p icu_datagen --no-default-features --features rayon,provider_baked,bin,use_wasm,networking,experimental_components --release
bin = set "target/release/icu4x-datagen"
components = array components/calendar components/collator components/datetime components/decimal components/list components/locid_transform components/normalizer components/plurals components/properties components/segmenter components/timezone experimental/casemap experimental/compactdecimal experimental/displaynames experimental/relativetime
else
exec --fail-on-error cargo build -p icu_datagen --no-default-features --features rayon,provider_baked,bin,use_wasm,networking,icu_casemap,icu_displaynames,icu_relativetime,icu_compactdecimal
exec --fail-on-error cargo build -p icu_datagen --no-default-features --features rayon,provider_baked,bin,use_wasm,networking,experimental_components
bin = set "target/debug/icu4x-datagen"
components = set ${@}
end
Expand Down

0 comments on commit 7e093fc

Please sign in to comment.