Skip to content

Update zoneinfo compilation in zoneinfo crate#532

Merged
nekevss merged 2 commits intomainfrom
support-slim-tzif
Sep 2, 2025
Merged

Update zoneinfo compilation in zoneinfo crate#532
nekevss merged 2 commits intomainfrom
support-slim-tzif

Conversation

@nekevss
Copy link
Copy Markdown
Member

@nekevss nekevss commented Sep 2, 2025

This PR updates the internal approach to compiling zoneinfo files into transition data.

The main goal of this PR is to support slim format compiled data in timezone_provider, which this PR should unblock as a CompiledTransition is now compiled in slim by default. This new approach also has some added benefits: one, it appears to be more correct as it fixes previously known bugs that needed to be addressed, and two, this approach is simpler to understand and doesn't do some of the backtracking that was occurring in the old approach.

All zoneinfo tests are passing on this commit
Remove some dead / out of date code
@nekevss nekevss requested review from a team and Manishearth September 2, 2025 02:26
@nekevss nekevss added the C-internal Internal library improvements label Sep 2, 2025
Copy link
Copy Markdown
Contributor

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not looking too closely at this, but overall seems fine.

@nekevss nekevss merged commit 7c03790 into main Sep 2, 2025
8 checks passed
@nekevss nekevss deleted the support-slim-tzif branch September 2, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-internal Internal library improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants