-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving datagen options to export
#3784
Conversation
(letting shane review locale filtering, I can but I'm less familiar with the code) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time for me to resolve conflicts on my side
@@ -42,12 +42,11 @@ use std::collections::HashSet; | |||
#[non_exhaustive] | |||
#[derive(Debug, Clone, PartialEq, Default)] | |||
pub struct Options { | |||
/// The set of keys to generate. See [`icu_datagen::keys`], | |||
/// [`icu_datagen::all_keys`], [`icu_datagen::key`] and [`icu_datagen::keys_from_bin`]. | |||
pub keys: HashSet<icu_provider::DataKey>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Observation (pre-existing issue): this means Options
is not Copy
, which means we won't benefit from non-exhaustive spread syntax once it becomes available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The locales
, segmentation_models
, and collations
fields are collections already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Yeah, which is why my comment is "observation pre-existing")
We should probably discuss this choice especially before we ship this API
This also necessarily moves the locale filtering from
supported_locales
intoexport
, and resolves #3409.Part of #3487.
Resolves most todos in #3640 (comment)