GraphiteEditor / GraphiteEditor/Graphite

Support multiple outputs in a proto node definition with return struct unpacking in the node macro

オープン
#2,517 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Graphene
主要言語
Rust
スター
27.3k
フォーク
1.3k
平均マージ
20時間 5分
マージ済み PR(30日)
57

説明

The node macro should be updated to convert a returned struct (with each field annotated with an attribute for metadata like the output name) into the necessary node definitions to unpack the struct as separate outputs. This could occur by generating a subgraph, but an approach which allows for avoiding that would be preferred.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず node macro の場所を特定し、現在どのようにノード定義を生成し、戻り値を処理しているかを読み取ります。既存の生成構造と、アノテーション付き戻り値 struct に期待される動作を比較し、出力の直接アンパックと生成されたサブグラフのどちらが macro の設計に適合するかを判断します。アノテーション付き struct を返すと、既存のノード定義を壊すことなく、個別の名前付き出力が生成されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
devtools
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。