processing / processing/libprocessing

Call to undeclared geometry function/attribute in wasm crate

未關閉 適合新手
#233 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Rust
星號
69
分支
14
平均合併
15 天 22 小時
30 天內合併 PR
3

描述

Hey!
I was playing around with libprocessing today and couldn't build because of a undeclared call to geometry_attribute_dead in the wasm crate. From what i understand, there's no dead attribute in the geometry crate, but i'm no Rust or Bevy expert (yet! :D)

https://github.com/processing/libprocessing/blob/f6a9c4bf48e51bfa78143e10a97069fa44492860/crates/processing_wasm/src/lib.rs#L2285

https://github.com/processing/libprocessing/blob/f6a9c4bf48e51bfa78143e10a97069fa44492860/crates/processing_render/src/geometry/attribute.rs#L220-L231

https://github.com/processing/libprocessing/blob/f6a9c4bf48e51bfa78143e10a97069fa44492860/crates/processing_render/src/geometry/attribute.rs#L293-L308

I got it to work by commenting the whole binding like so :

/*
#[wasm_bindgen(js_name = "geometryAttributeDead")]
pub fn js_geometry_attribute_dead() -> u64 {
    geometry_attribute_dead().to_bits()
}
*/

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 crates/processing_wasm/src/lib.rs 第 2285 行附近開始,將 geometry_attribute_dead binding 與 crates/processing_render/src/geometry/attribute.rs 第 220-231 行和 293-308 行附近的宣告進行比較。執行 wasm crate 的建置以重現未宣告呼叫錯誤;當 binding 與可用的 geometry function 相符,或以其他方式完成修正,且 crate 成功建置時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust, wasm
領域
build-system
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
活躍
描述清晰度
描述清楚
新手友好度
82/100

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

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