-
Following docs, result into an error. Link to the docs use icu_datagen::blob_exporter::*;
use icu_datagen::prelude::*;
use std::fs::File;
fn main() {
DatagenDriver::new()
.with_keys([icu::list::provider::AndListV1Marker::KEY])
.with_all_locales()
.export(
&DatagenProvider::new_latest_tested(),
BlobExporter::new_v2_with_sink(Box::new(
File::create("data.postcard").unwrap(),
)),
)
.unwrap();
} Error:
But the following code works for use icu_datagen::blob_exporter::*;
use icu_datagen::prelude::*;
use std::fs::File;
fn main() {
DatagenDriver::new()
.with_keys([icu::collator::provider::CollationDataV1Marker::KEY])
.with_all_locales()
.export(
&DatagenProvider::new_latest_tested(),
BlobExporter::new_v2_with_sink(Box::new(
File::create("data.postcard").unwrap(),
)),
)
.unwrap();
} PS: I also tried with #[icu_provider::data_struct(
AndListV1Marker = "list/and@1",
OrListV1Marker = "list/or@1",
UnitListV1Marker = "list/unit@1"
)] |
Beta Was this translation helpful? Give feedback.
Answered by
ashu26jha
Mar 9, 2024
Replies: 1 comment
-
Okay, now I get it what's the issue. I think this is due to some compatability issue, as far as I remember I cleaned up some files and retried reinstalling. To fix this, try clearing the cache data related to it. Closing this as it's working now |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ashu26jha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, now I get it what's the issue. I think this is due to some compatability issue, as far as I remember I cleaned up some files and retried reinstalling.
To fix this, try clearing the cache data related to it.
Closing this as it's working now