Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ACGNnsj opened this issue Jan 6, 2023 · 2 comments
Open

Comments

@ACGNnsj
Copy link

ACGNnsj commented Jan 6, 2023

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

@529124368
Copy link
Owner

@ACGNnsj

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

@shellohunter
Copy link

刚下来跑了下,还是一样的问题。
在编译日志中看到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 你的问题解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants