-
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
Connect properties provider to the icu4x_datagen exporter tool #1204
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
bfd4cb8
Initial code for connecting properties provider to the icu4x_datagen …
echeran 82e9699
Connect the data providers for sets and maps of property data to the …
echeran 24da958
Merge branch 'main' into uprops-datagen
echeran 19be0f7
Add JSON and bincode versions of uprops source data TOML files into t…
echeran 9d049bd
Update crate level docstrings for icu::properties and icu_properties
echeran 34f07f4
Fix icu_properties docs test compilation, make minor adjustment to tests
echeran b739ce1
Fix datagen tests to use renamed CLI args. Use canonical formatting f…
echeran 80c28b1
Make serde imports/derives conditional on feature being enabled
echeran a414e5b
Move icu_testdata to dev-dependency
sffc b75ffdc
Update Rust docstring examples
echeran 29467f1
Update a portion of the docstring examples for property UnicodeSet ge…
echeran 00137b6
Complete the docstring examples for property UnicodeSet getter APIs
echeran bd1c49a
Apply formatter changes
echeran 1d240b2
Fix docstring link
echeran 93e923b
Adjust wording for crate-level docstrings for properties
echeran 8c45a66
Adjust wording for crate-level docstrings for uniset
echeran 2e4a5ae
Remove unneeded bincode versions of testdata
echeran 38e34b4
Rename field in provider data struct for code point maps
echeran 764d7fc
Merge branch 'main' into uprops-datagen
echeran 92782f2
Simplify nested if+match statement logic
echeran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 do we need these serde impls now when we didn't need them before?
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.
Deserialize is needed for unit tests that need to load data as a UnicodePropertyMap data struct (which in turns carries a CodePointMap, which takes these enums as parameters). In the reverse direction, serialization happens when generating testdata.
This is the error from
cargo test
when I comment out these serde impls:Similarly, this is the error from
cargo make testdata
: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.
Okay, so I think we do actually need the serde impls here, because
human_readable
serialization of the ZeroVec needs those impls onT
.