FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
358 stars 88 forks source link

Rewrite fuel_asm::impl_instructions! to a proc macro #804

Open Dentosal opened 3 months ago

Dentosal commented 3 months ago

What it says on the tin. No exteranal functional changes, just refactoring.

Crate-internal test_construct function has been removed, as the associated test didn't seem to catch any errors. It has been rewritten to use a fuzzing-style property-based testing.

The purpose of this PR is to allow more complex instruction definitions in the future. This should allow moving some validity checks to instruction parsing level, and to improve type safety.

Checklist

Before requesting review