Skip to content

Add provider APIs to capi#544

Merged
Manishearth merged 8 commits intoboa-dev:mainfrom
Manishearth:provider-capi
Sep 10, 2025
Merged

Add provider APIs to capi#544
Manishearth merged 8 commits intoboa-dev:mainfrom
Manishearth:provider-capi

Conversation

@Manishearth
Copy link
Copy Markdown
Contributor

@Manishearth Manishearth commented Sep 8, 2025

The general design: all compiled_data methods get with_provider versions; the compiled_data call is tweaked to use a compiled provider. In theory I could choose to not proxy compiled_data methods to with_provider ones but it's cleaner this way, and as long as the build configuration doesn't enable two backends it should be zero-cost.

Haven't done everything yet, but this is the approach.

@Manishearth Manishearth requested a review from nekevss September 8, 2025 22:20
@Manishearth Manishearth changed the title [WIP] Add provider to capi Add provider to capi Sep 9, 2025
@Manishearth Manishearth marked this pull request as ready for review September 9, 2025 07:17
@Manishearth
Copy link
Copy Markdown
Contributor Author

cc @linusg who may care about using custom timezone data

@Manishearth Manishearth changed the title Add provider to capi Add provider APIs to capi Sep 9, 2025
Copy link
Copy Markdown
Contributor

@linusg linusg left a comment

Choose a reason for hiding this comment

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

For the time being I'm planning to stick with the compiled providers (same for icu4x) but this LGTM :)

@Manishearth Manishearth merged commit d8ef8bf into boa-dev:main Sep 10, 2025
8 checks passed
@Manishearth Manishearth deleted the provider-capi branch September 10, 2025 01:17
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.

3 participants