Currently we have a hand-rolled attribute parser in linera-witty-macros. It would be nice to replace it with a mature solution like darling or deluxe, which should reduce some code duplication by allowing us to use an option struct as the source of truth for our attributes.
Guida contributor
Tech stack
rust
Dominio
tooling
Tipo issue
refactor
DifficoltàQuanto dovrebbe essere impegnativa per un nuovo contributor.
3
Tempo stimatoTempo stimato per completare e verificare uno scope piccolo.
half day
Stato attivitàQuanto è probabile che la issue sia ancora attiva e reviewable.
fresh
ChiarezzaQuanto chiaramente la issue descrive problema, scope e risultato atteso.
clear
Prerequisiti
Rust proc macro knowledgeFamiliarity with darling or deluxe
Adatta ai principiantiQuanto la issue è adatta a contributor alla prima esperienza.
60
Direzione di ricerca
Start by examining the current hand rolled attribute parser in the `linera witty macros` crate (likely in the `src/` directory). Understand how attributes are parsed and where code duplication exists. Then choose either `darling` or `deluxe` and review their documentation for attribute parsing. Implement a replacement that uses the chosen library, ideally by extracting an options struct from the current attributes. Test the changes to ensure the macro behavior remains identical. No comments or PRs exist on this issue yet.