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 摘要。