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

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

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed
- [#804](https://github.com/FuelLabs/fuel-vm/pull/804): Refactor `impl_instructions!` macro. No externally visible changes.

## [Version 0.56.0]

### Added
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
members = [
"fuel-asm",
"fuel-asm/derive",
"fuel-crypto",
"fuel-merkle",
"fuel-storage",
Expand All @@ -21,6 +22,7 @@ version = "0.56.0"

[workspace.dependencies]
fuel-asm = { version = "0.56.0", path = "fuel-asm", default-features = false }
fuel-asm-derive = { version = "0.56.0", path = "fuel-asm/derive", default-features = false }
fuel-crypto = { version = "0.56.0", path = "fuel-crypto", default-features = false }
fuel-derive = { version = "0.56.0", path = "fuel-derive", default-features = false }
fuel-merkle = { version = "0.56.0", path = "fuel-merkle", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions fuel-asm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ description = "Atomic types of the FuelVM."
[dependencies]
arbitrary = { version = "1.1", features = ["derive"], optional = true }
bitflags = { workspace = true }
fuel-asm-derive = { workspace = true }
fuel-types = { workspace = true }
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
strum = { version = "0.24", default-features = false, features = ["derive"] }
Expand All @@ -21,6 +22,7 @@ wasm-bindgen = { version = "0.2.88", optional = true }
[dev-dependencies]
bincode = { workspace = true }
fuel-asm = { path = ".", features = ["serde"] }
proptest = "1.5"
Dentosal marked this conversation as resolved.
Show resolved Hide resolved
rstest = "0.16"

[features]
Expand Down
24 changes: 24 additions & 0 deletions fuel-asm/derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "fuel-asm-derive"
version = { workspace = true }
authors = { workspace = true }
categories = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
keywords = ["blockchain", "cryptocurrencies", "fuel-vm", "vm"]
license = { workspace = true }
repository = { workspace = true }
description = "FuelVM asm instruction helper macros."

[lib]
proc-macro = true

[dependencies]
itertools = "0.13"
proc-macro2 = "1"
quote = "1"
syn = { version = "2", features = ["full"] }
synstructure = "0.13"

[dev-dependencies]
fuel-asm = { workspace = true }
Loading
Loading