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.
Contributor guide
Tech stack
rust
Domain
tooling
Issue type
refactor
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
half day
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
fresh
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
Rust proc macro knowledgeFamiliarity with darling or deluxe
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
60
Research direction
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.