-
Notifications
You must be signed in to change notification settings - Fork 54
Use 3.0 crates and 2.0 SPL interfaces #155
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
Conversation
buffalojoec
left a comment
There was a problem hiding this 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.
fuzz/fixture/src/context.rs
Outdated
| 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"))] | ||
| { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buffalojoec
left a comment
There was a problem hiding this 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.
buffalojoec
left a comment
There was a problem hiding this 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!
Updates Mollusk to use:
simd-0268feature for SIMD-0268max_instruction_stack_depthwhen constructingComputeBudget