Skip to content

add macros crate - #3

Merged
trappitsch merged 3 commits into
mainfrom
derive_macro
Jul 27, 2026
Merged

add macros crate#3
trappitsch merged 3 commits into
mainfrom
derive_macro

Conversation

@trappitsch

Copy link
Copy Markdown
Owner

Implementing new types for communicating with instruments requires that we can read and write our new types to the instrument. This means that they need to implement the InstrumentParameter trait (renamed from Parameter trait).

Since the InstrumentParameter trait must be defined in the instrument driver crate, it can now be automatically included with a functional macro. Ultimately, this will be part of the instrument writing macro.

Furthermore, a derive macro was added to automatically derive the InstrumentParameter trait for various enums and structs.

@trappitsch
trappitsch merged commit 01b2a9a into main Jul 27, 2026
7 checks passed
@trappitsch
trappitsch deleted the derive_macro branch July 27, 2026 19:00
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.

1 participant