-
Notifications
You must be signed in to change notification settings - Fork 182
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
Macro-based baked data #3449
Macro-based baked data #3449
Conversation
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
icu_list
icu_list
and icu_plurals
This comment was marked as spam.
This comment was marked as spam.
icu_list
and icu_plurals
I've rescoped this PR, it now only changes the baked format. |
This reverts commit ff48bb5.
} | ||
} | ||
#[doc(inline)] | ||
pub use __impl_data_provider as impl_data_provider; |
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.
Question: why the rename and re-export?
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.
Because macros are weird. macro_export
will put them at the root of the crate, so we hide that, and pub use
respects module structure. This is explained in a comment in line 465.
Here's an example of what it generates for a single key
|
I'm fine with this landing. I have a couple concerns:
|
Me too. As discussed I'll try to make this work after globaldata when the constraints are clearer
Oh no we should not support that. Just regen. |
@robertbastian not manually patching, but even in a regen you want manageable diffs |
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.
Thanks for working on this!
When reviewing, look at:icu_globaldata
rustdocThe usage inicu_list
This commit that tries to split data into separate files again, which does not work because macro-lookup inicu_testdata
(or anywhere thatinclude!
s baked data) cannot use the$crate
prefix, but macro-lookup inicu_globaldata
requires itTurn off deleted files in the diff view to make it not lag.
#2743 #2945