Skip to content
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

feat: feature flag alloy_sol_types #850

Merged
merged 7 commits into from
May 31, 2024
Merged

Conversation

ratankaliani
Copy link
Member

@ratankaliani ratankaliani commented May 31, 2024

There have been reports of version incompatibilities between the alloy_sol_types version in the sp1-sdk and those in older versions of reth.

As alloy_sol_types is only used by the NetworkProver, add an optional feature flag network which can configure out the NetworkProver and alloy_sol_types. This flag is enabled by default, so existing users of the SDK shouldn't see any issues.

@ratankaliani ratankaliani changed the base branch from main to dev May 31, 2024 00:07
@ratankaliani ratankaliani enabled auto-merge (squash) May 31, 2024 00:36
pub mod auth;
#[cfg(feature = "network")]
Copy link
Contributor

Choose a reason for hiding this comment

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

have a network subcrate that you can just feature flag in 1

Copy link
Member Author

Choose a reason for hiding this comment

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

To keep the exports the same (i.e. you can import NetworkProver with sp1_sdk::NetworkProver) we still need 2 cfg statements, but I added a network submodule that allows removing the rest of the feature gating.

@ratankaliani ratankaliani merged commit e48c01e into dev May 31, 2024
5 checks passed
@ratankaliani ratankaliani deleted the ratan/feature-flag-alloy branch May 31, 2024 06:53
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.

2 participants