alloy-rs / alloy-rs/core

[Feature] Implement `sol-types` traits in `sol!` without tuples

未關閉
#261 2 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Rust
星號
967
分支
274
平均合併
1 天 21 小時
30 天內合併 PR
15

描述

### Component

sol! macro

### Describe the feature you would like

Currently we implement all traits by deferring everything to a tuple of the inner types (struct, function arguments and returns, etc.).

This is bad because it:
- duplicates the underlying types
- has lower runtime performance due to needing to clone the types to then just use the tuple by reference
- complicates the API
- limits the number of struct fields, function arguments etc allowed to the max tuple size implemented by the library
- overall, it's just not how you implement procedural macros :smile_cat:

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。