Skip to content

chore(deps): c-kzg 2.0 #2240

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

Merged
merged 9 commits into from
Mar 28, 2025
Merged

chore(deps): c-kzg 2.0 #2240

merged 9 commits into from
Mar 28, 2025

Conversation

yash-atreya
Copy link
Member

Motivation

Closes #1745

Solution

  • Bump c-kzg to 2.0
  • Address breaking changes

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@yash-atreya yash-atreya marked this pull request as ready for review March 25, 2025 06:29
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

DEFAULT.get_or_init(|| alloc::boxed::Box::new(load()))
}
}
Self::Default => c_kzg::ethereum_kzg_settings(0),
Copy link
Member

Choose a reason for hiding this comment

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

this ckzg api is incredibly weird, because this allows providing an argument which is then ignored the second time this function is called because the kzgsettings are cached.
however, for this crate this is perfectly fine

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Mar 25, 2025
@yash-atreya yash-atreya added blocked This cannot move forward until something else changes breaking Breaking changes have been made labels Mar 25, 2025
@kevaundray
Copy link
Contributor

kevaundray commented Mar 25, 2025

@yash-atreya why is this marked as blocked? I'm wondering if there is an issue with integration

@mattsse
Copy link
Member

mattsse commented Mar 25, 2025

no issue with the integration, but this is a breaking change and would further split crate compatibility until everything is migrated properly.

but I think we can now send 0.13

but this must be timed with revm release otherwise this can't be upgraded

@yash-atreya yash-atreya requested a review from DaniPopes March 26, 2025 06:50
@mattsse mattsse merged commit c04dbec into main Mar 28, 2025
27 checks passed
@mattsse mattsse deleted the yash/bump-c-kzg branch March 28, 2025 13:44
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This cannot move forward until something else changes breaking Breaking changes have been made
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug] Upgrade c-kzg dependency to 2.0
5 participants