Skip to content

Implement human-readable serde deserialization for TimezonePeriods - #8554

Open
Manishearth wants to merge 2 commits into
unicode-org:mainfrom
Manishearth:fix-timezone-periods-serde
Open

Manishearth wants to merge 2 commits into
unicode-org:mainfrom
Manishearth:fix-timezone-periods-serde

Conversation

@Manishearth

@Manishearth Manishearth commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Depends on #8552 and #8553

Needs moving some datagen code to the crate since it's useful for construction.

cc #6752, since the TODO mentioned it (but this doesn't actually fix that issue)

Changelog

icu_time: Implement human-readable serde deserialization for TimezonePeriods

@Manishearth Manishearth changed the title Fix timezone periods serde Implement human-readable serde deserialization for TimezonePeriods Oct 6, 2026
@Manishearth

Copy link
Copy Markdown
Member Author

@robertbastian the lack of this prevents serde-json roundtrip for TimezonePeriodsV1, but this is also a fair amount of agent-generated code. Not sure if there's a better way to do this. Thoughts?

@Manishearth
Manishearth force-pushed the fix-timezone-periods-serde branch from ff103fe to 3602c1a Compare October 6, 2026 23:18
@dpulls

dpulls Bot commented Oct 7, 2026

Copy link
Copy Markdown

🎉 All dependencies have been resolved !

@Manishearth
Manishearth force-pushed the fix-timezone-periods-serde branch 2 times, most recently from 25b1517 to 787ee4b Compare October 7, 2026 22:47
…zonePeriods

Implement TimezonePeriods::deserialize for human-readable deserializers
(see unicode-org#6752), reconstructing the deduplicated offsets table, ZeroTrieSimpleAscii
time zone index, and VarZeroVec period list from the human-readable map
produced by TimezonePeriods::serialize.
@Manishearth
Manishearth marked this pull request as ready for review October 7, 2026 23:00
@Manishearth
Manishearth force-pushed the fix-timezone-periods-serde branch from 787ee4b to 8021563 Compare October 7, 2026 23:01
@Manishearth
Manishearth removed the request for review from sffc October 8, 2026 04:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant