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.
贡献者指南
技术栈
rust
领域
tooling
议题类型
refactor
难度面向新贡献者的预计实现难度,1 表示很小改动,5 表示专家级工作。
3
预计时间有经验贡献者完成调查、实现、测试并准备 pull request 的粗略时间范围。
half day
活动状态议题当前的可参与程度:新鲜、活跃、陈旧、阻塞或等待维护者输入。
fresh
清晰度议题是否清楚说明期望改动、验收标准和下一步。
clear
前置要求
Rust proc macro knowledgeFamiliarity with darling or deluxe
新手友好度1-100 的估计分数,表示该议题对首次贡献者的友好程度。
60
研究方向
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.