rust_mir2 icon indicating copy to clipboard operation
rust_mir2 copied to clipboard

请问一下构建的时候找不到godot属性应该怎么解决

Open ACGNnsj opened this issue 2 years ago • 2 comments

image = =对rust不太熟悉 这里godot算是属性宏吗 我搜了一下好像没有地方定义过它

ACGNnsj avatar Jan 06 '23 08:01 ACGNnsj

@ACGNnsj

是的是宏,需要引入下面的库 https://github.com/godot-rust/gdnative

529124368 avatar Jan 06 '23 11:01 529124368

刚下来跑了下,还是一样的问题。 在编译日志中看到gdnative已经引入了啊,为什么还是报同样的错误信息呢?

   Compiling miniserde v0.1.34
   Compiling gdnative_bindings_generator v0.11.3
   Compiling gdnative-bindings v0.11.3
   Compiling gdnative-sys v0.11.3
   Compiling gdnative-core v0.11.3
   Compiling gdnative v0.11.3
   Compiling zimuge v0.1.0 (E:\workspace\oss\rust_mir2\rust)
error: cannot find attribute `godot` in this scope
   --> rust\src\websocket.rs:137:7
    |
137 |     #[godot]
    |       ^^^^^

@ACGNnsj 你的问题解决了吗?

shellohunter avatar Sep 13 '23 06:09 shellohunter