Skip to content

Conversation

@rustopian
Copy link
Contributor

@rustopian rustopian commented Aug 26, 2025

Updates Mollusk to use:

  • Solana 3.0.0
  • 3.0.0 crates from agave and solana-sdk
  • 2.0 SPL interface crates
  • cargo simd-0268 feature for SIMD-0268 max_instruction_stack_depth when constructing ComputeBudget

@rustopian rustopian marked this pull request as ready for review August 27, 2025 13:54
@rustopian rustopian requested a review from buffalojoec August 27, 2025 13:54
Copy link
Collaborator

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

Cool, thanks for putting this together! Just some comments about a few things.

@rustopian rustopian requested a review from buffalojoec August 27, 2025 21:45
Comment on lines 67 to 73
compute_budget: value.compute_budget.map(Into::into).unwrap_or_else(|| {
#[cfg(feature = "simd-0296")]
#[cfg(feature = "simd-0268")]
{
ComputeBudget::new_with_defaults(true)
}
#[cfg(not(feature = "simd-0296"))]
#[cfg(not(feature = "simd-0268"))]
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, I see the problem. So this should be the only spot we need this feature flag, right?

Since these conversions happen when the fuzz API reads from a fixture, we really need to use the value in the feature set to flip this boolean.

I think you can just evaluate the feature set first here, and then look up whether or not the feature is active to plumb the boolean through the compute budget conversion. We probably have to move off of From for ComputeBudget and use a free function. That's no biggie.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, free function incoming.

Copy link
Contributor Author

@rustopian rustopian Sep 14, 2025

Choose a reason for hiding this comment

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

Turns out we can easily do this without moving away from From. Cargo feature flag removed in dc7bb58. Also added a few tests that this works as intended in 1a50508.

Copy link
Collaborator

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

Almost there! Thanks again.

Copy link
Collaborator

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

Thanks for cranking this out!

@buffalojoec buffalojoec merged commit c4378cf into anza-xyz:main Sep 16, 2025
5 checks passed
@rustopian rustopian deleted the use-3.0-crates branch September 16, 2025 11:50
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